MessageLookupChange class

Constructors

MessageLookupChange()

Properties

availableMessages Map<String, MessageLookupByLibrary>
A map from locale names to the corresponding lookups.
getter/setter pair
defaultArgsMap Map<String, List<Object>>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addLocale(String localeName, Function findLocale) → void
If we do not already have a locale for localeName then findLocale will be called and the result stored as the lookup mechanism for that locale.
clearAndAddLocale(String localeName, Function findLocale) → void
清空 availableMessages 並且重新 addLocale, findLocale 會清空後 在addLocale中調用
getArgs(String name) List<Object>
根据 defaultLocalename 拿到对应的args defaultLocale 应该是用来生成[l10n.dart 的那个默认locale
localeExists(dynamic localeName) bool
Return true if we have a message lookup for localeName.
lookupMessage(String? messageText, String? locale, String? name, List<Object>? args, String? meaning, {MessageIfAbsent? ifAbsent}) String?
Look up the message with the given name and locale and return the translated version with the values in args interpolated. If nothing is found, return the result of ifAbsent or messageText.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveDefaultMessage(String localeName, Function findLocale, {String? contentJson}) → void
报错默认数据
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited