LangConfig class Null safety

contains the localization config

Constructors

LangConfig({Locale fallbackLocale = const Locale('en'), NationsLoader baseLoader = const AppAssetsLoader(), List<Locale> supportedLocales = const [Locale('ar'), Locale('en'), Locale('es'), Locale('tur')], Gender defaultGender = Gender.male, List<NationsLoader> loaders = const <NationsLoader>[AppAssetsLoader()]})
coning base class
const

Properties

baseLoader NationsLoader
loads the app translations
final
defaultGender Gender
the default gender
final
fallbackLocale Locale
which locale to use in case of failure
final
firstTimeLocale Locale
which locale to use in case of failure
read-only
hashCode int
The hash code for this object.
read-onlyinherited
loaders List<NationsLoader>
the loaders
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
supportedLocales List<Locale>
list of the supported locales
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
notFound(String key) String
not found builder to build the not found string
notFoundArgs(String key, Map<String, Object> args) String
not found builder to build the not found string
notFoundGender(String key, [Gender? gender]) String
not found builder to build the not found string
notFoundPlural(String key, int count, Map<String, Object> args) String
not found builder to build the not found string
toString() String
A string representation of this object.
inherited

Operators

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