phase3: generated l10n/messages_all, events, actions, dialog null-safe
This commit is contained in:
@@ -24,7 +24,7 @@ Map<String, LibraryLoader> _deferredLibraries = {
|
||||
'zh_CN': () => new Future.value(null),
|
||||
};
|
||||
|
||||
MessageLookupByLibrary _findExact(String localeName) {
|
||||
MessageLookupByLibrary? _findExact(String localeName) {
|
||||
switch (localeName) {
|
||||
case 'en':
|
||||
return messages_en.messages;
|
||||
@@ -59,7 +59,7 @@ bool _messagesExistFor(String locale) {
|
||||
}
|
||||
}
|
||||
|
||||
MessageLookupByLibrary _findGeneratedMessagesFor(String locale) {
|
||||
MessageLookupByLibrary? _findGeneratedMessagesFor(String locale) {
|
||||
var actualLocale = Intl.verifiedLocale(locale, _messagesExistFor,
|
||||
onFailure: (_) => null);
|
||||
if (actualLocale == null) return null;
|
||||
|
||||
Reference in New Issue
Block a user