BasicLocaleExtension extension
Provides extension methods for BasicLocale class.
Contains common methods for example copyWith
, toMap
, fromMap
, etc,
that are common to all package's submodels.
- on
Methods
-
copyWith(
{String? countryCode, NaturalLanguage? language, Script? script}) → BasicLocale -
Available on BasicLocale, provided by the BasicLocaleExtension extension
Creates a copy of this object with the given fields replaced with the new values. If the new values are null, the field is left unchanged. Otherwise, the field is replaced with the new value. -
toMap(
) → Map< String, String?> -
Available on BasicLocale, provided by the BasicLocaleExtension extension
Converts this object object to a JSON like map.
Static Methods
-
fromMap(
JsonMap map) → BasicLocale -
Available on BasicLocale, provided by the BasicLocaleExtension extension
Creates a new instance of this object from a JSON like map.