提交 ce36d85d 编写于 作者: G Gary Qian 提交者: Dan Field

Revert "Pass null instead of 'none' locale" (#6622)

* Revert "Revert "Roll buildtools to 759274dd801b2f78ae0c4066101d0beca27ffc9a" (#6621)"

This reverts commit 9de880cc.

* Revert "Properly gate android API < 21 and remove extraneous data array. (#6619)"

This reverts commit 8cb3965a.

* Revert "Update Dart version in Dockerfile (#6618)"

This reverts commit 2091c0db.

* Revert "Don't attempt to build any platform target on Fuchsia. (#6617)"

This reverts commit 739d66ee.

* Revert "Roll Dart to 45f9462398ae7d2e80acd79d3f9c32c7ca6f6f97 (#6616)"

This reverts commit 7d49036d.

* Revert "Pass null instead of 'none' locale (#6613)"

This reverts commit 6c84c5f6.
上级 9de880cc
......@@ -152,6 +152,9 @@ 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.
......@@ -440,7 +443,7 @@ class Window {
if (_locales != null && _locales.isNotEmpty) {
return _locales.first;
}
return null;
return Locale.none;
}
/// The full system-reported supported locales of the device.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册