StormyI18nConfig class

多语言配置模型

Constructors

StormyI18nConfig({Locale? defaultLocale, Iterable<LocalizationsDelegate>? localizationsDelegates, Iterable<Locale>? supportedLocales, String storageKey = 'stormy_app_locale', String? storageBucket})
const

Properties

defaultLocale → Locale?
默认语种(当本地存储中没有选择也没有跟随系统时使用,通常可为空)
final
hashCode → int
The hash code for this object.
no setterinherited
localizationsDelegates → Iterable<LocalizationsDelegate>?
本地化代理
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
storageBucket → String?
存储到指定的 Bucket,如不传则使用 StorageConfig 的 default bucket
final
storageKey → String
存储到 Storage 所使用的键值,默认取名 'stormy_app_locale'
final
supportedLocales → Iterable<Locale>?
支持的语言列表
final

Methods

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