Localization class abstract
The localization object
- Available extensions
- Annotations
-
- @freezed
Constructors
-
Localization({required List<
Language> availableLanguages, required List<Country> availableCountries, required Language language, required Country country, required Market market}) -
The localization object constructor
constfactory
-
Localization.fromJson(Map<
String, dynamic> json) -
The localization object from json
factory
Properties
-
availableCountries
→ List<
Country> -
no setterinherited
-
availableLanguages
→ List<
Language> -
no setterinherited
-
copyWith
→ $LocalizationCopyWith<
Localization> -
Create a copy of Localization
with the given fields replaced by the non-null parameter values.
no setterinherited
- country → Country
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- language → Language
-
no setterinherited
- market → Market
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_Localization value)) → TResult -
Available on Localization, provided by the LocalizationPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_Localization value)?) → TResult? -
Available on Localization, provided by the LocalizationPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_Localization value)?, {required TResult orElse()}) → TResult -
Available on Localization, provided by the LocalizationPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(List< Language> availableLanguages, List<Country> availableCountries, Language language, Country country, Market market)?, {required TResult orElse()}) → TResult -
Available on Localization, provided by the LocalizationPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this Localization to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(List< Language> availableLanguages, List<Country> availableCountries, Language language, Country country, Market market)) → TResult -
Available on Localization, provided by the LocalizationPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(List< Language> availableLanguages, List<Country> availableCountries, Language language, Country country, Market market)?) → TResult? -
Available on Localization, provided by the LocalizationPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited