LanguageSetting class abstract
语言包配置
Constructors
Properties
- arbMergeEnable → bool
-
是否开启arb增量更新
no setter
- arbTranslation ↔ ArbTranslation
-
arb 转译器,有需要可重写
getter/setter pair
- defaultLocale ↔ String
-
默认的语言
getter/setter pair
-
deferredLibraries
↔ Map<
String, LibraryLoader> -
支持的语言列表,() => 后不为null即可
intl官方的格式,
checkAndDownload
可以放在这里,那么在加载对应语言时就可以触发检查下载。getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- kDicName ↔ String
-
语言包缓存目录
getter/setter pair
- kFileName ↔ String
-
语言包文件名
以这种格式存储 ${kFileName}_$localeName.arb
getter/setter pair
- kIntlLocaled ↔ String
-
是否使用本地的配置的Key,用来配合远程开关
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
defaultLocaleMessages(
String localeName) → MessageLookupByLibrary? - 当无法取得网络资源时,本地的语言包,参考官方生成的格式 switch (localeName) { case 'de': return messages_de.messages; case 'en': return messages_en.messages; case 'it': return messages_it.messages; default: return null; }
-
languageApi(
String locale) → Future< String> - 根据locale决定的资源下载地址,arb格式!
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited