mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Pass null instead of 'none' locale (flutter/engine#6613)
This commit is contained in:
parent
690462fd42
commit
9ae28b334f
@ -152,9 +152,6 @@ class Locale {
|
||||
/// the region subtag should be uppercase.
|
||||
const Locale(this._languageCode, [ this._countryCode ]) : assert(_languageCode != null);
|
||||
|
||||
/// Empty locale constant. This is an invalid locale.
|
||||
static const Locale none = const Locale('', '');
|
||||
|
||||
/// The primary language subtag for the locale.
|
||||
///
|
||||
/// This must not be null.
|
||||
@ -443,7 +440,7 @@ class Window {
|
||||
if (_locales != null && _locales.isNotEmpty) {
|
||||
return _locales.first;
|
||||
}
|
||||
return Locale.none;
|
||||
return null;
|
||||
}
|
||||
|
||||
/// The full system-reported supported locales of the device.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user