diff --git a/lib/ui/window.dart b/lib/ui/window.dart index 2c4f283214643d8cd31fd1af4087b0b41f4b7861..28f91372460f20ec13c7405b110cffb8edbbde4b 100644 --- a/lib/ui/window.dart +++ b/lib/ui/window.dart @@ -150,10 +150,7 @@ class Locale { /// Registry](https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry). /// Typically this means the primary language subtag should be lowercase and /// 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('', ''); + const Locale(this._languageCode, [ this._countryCode ]) : assert(_languageCode != null), assert(_languageCode != ''); /// The primary language subtag for the locale. /// @@ -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.