From 200ff5ce6488f76f2e81c98d2985dfa2fd5b9eb8 Mon Sep 17 00:00:00 2001 From: GaryQian Date: Fri, 19 Oct 2018 10:48:17 -0700 Subject: [PATCH] Pass null instead of 'none' locale --- lib/ui/window.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/ui/window.dart b/lib/ui/window.dart index 2c4f283214643..ca93f4874b15e 100644 --- a/lib/ui/window.dart +++ b/lib/ui/window.dart @@ -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.