We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57b730f commit edce10bCopy full SHA for edce10b
lib/src/generator/templates.dart
@@ -29,7 +29,7 @@ class $className {
29
final name = (locale.countryCode?.isEmpty ?? false) ? locale.languageCode : locale.toString();
30
final localeName = Intl.canonicalizedLocale(name);${otaEnabled ? '\n${_generateMetadataSetter()}' : ''}
31
return initializeMessages(localeName).then((_) {
32
- return $className(localeName);
+ return SynchronousFuture<$className>($className(localeName));
33
});
34
}
35
0 commit comments