AppLang class abstract

facilitate controlling the localization process

Constructors

AppLang()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Properties

baseLoader NationsLoader
  • base translation loader
  • no setter
    config LangConfig
  • return current LangConfig
  • no setter
    country String?
  • return current locale country code
  • no setter
    current Locale
  • return the current locale
  • no setter
    fallbackLocale Locale
  • return fallback locale
  • no setter
    firstTimeLocale Locale
  • return first time locale
  • no setter
    key String
  • return current locale language code
  • no setter
    name String
  • no setter
    supportedLocales List<Locale>
  • return supported Locale list
  • no setter
    translations Map<String, Object?>
    return loaded locale translation assets
    no setter
    window Locale
  • return the current window locale
  • no setter

    Static Methods

    equals(Locale locale) bool
  • return true if the current locale == the parameter
  • update(Locale locale) Future<void>
  • update a locale