Skip to content

Commit edce10b

Browse files
committed
Fix #90
1 parent 57b730f commit edce10b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/generator/templates.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class $className {
2929
final name = (locale.countryCode?.isEmpty ?? false) ? locale.languageCode : locale.toString();
3030
final localeName = Intl.canonicalizedLocale(name);${otaEnabled ? '\n${_generateMetadataSetter()}' : ''}
3131
return initializeMessages(localeName).then((_) {
32-
return $className(localeName);
32+
return SynchronousFuture<$className>($className(localeName));
3333
});
3434
}
3535

0 commit comments

Comments
 (0)