Localizations class
A set of Localization for supportedLanguages
- Inheritance
-
- Object
- MapView<
Locale, Localization> - UnmodifiableMapView<
Locale, Localization> - Localizations
Constructors
-
Localizations(Locale fallbackLocale, Set<
Language> supportedLanguages, Set<Locale> supportedLocales, Map<Locale, Localization> localizations) -
Creates a new instance of Localizations
const
Properties
-
entries
→ Iterable<
MapEntry< Locale, Localization> > -
The map entries of this.
no setterinherited
- fallbackLocale → Locale
-
The Locale used if an unsupported language is used to access these localizations.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
internalMap
→ Map<
Locale, Localization> -
The internal representation of the unmodifiable map. Not guarunteed to be unmodifiable.
finalinherited
- isEmpty → bool
-
Whether there is no key/value pair in the map.
no setterinherited
- isNotEmpty → bool
-
Whether there is at least one key/value pair in the map.
no setterinherited
-
keys
→ Iterable<
Locale> -
The keys of this.
no setterinherited
- length → int
-
The number of key/value pairs in the map.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
supportedLanguages
→ Set<
Language> -
The languages supported by these localizations
final
-
supportedLocales
→ Set<
Locale> -
The locales supported by these localizations
final
-
values
→ Iterable<
Localization> -
The values of this.
no setterinherited
Methods
-
addAll(
Map< Locale, Localization> other) → void -
This operation is not supported by an unmodifiable map.
inherited
-
addEntries(
Iterable< MapEntry< entries) → voidLocale, Localization> > -
This operation is not supported by an unmodifiable map.
inherited
-
cast<
RK, RV> () → UnmodifiableMapView< RK, RV> -
Provides a view of this map as having
RK
keys andRV
instances, if necessary.inherited -
clear(
) → void -
This operation is not supported by an unmodifiable map.
inherited
-
containsKey(
Object? key) → bool -
Whether this map contains the given
key
.inherited -
containsValue(
Object? value) → bool -
Whether this map contains the given
value
.inherited -
forEach(
Value2Callback< Locale, Localization, void> action) → void -
Applies
action
to each key/value pair of the map.inherited -
isLanguageSupported(
Language? language) → bool -
Checks whether
language
is supported by these localizations -
isLocaleSupported(
Locale locale) → bool -
Checks whether
locale
is supported by these localizations -
map<
K2, V2> (Value2Callback< Locale, Localization, MapEntry< transform) → Map<K2, V2> >K2, V2> -
Returns a new map where all entries of this map are transformed by
the given
convert
function.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
putIfAbsent(
Locale key, Callback< Localization> ifAbsent) → Localization -
This operation is not supported by an unmodifiable map.
inherited
-
remove(
Object? key) → Localization? -
This operation is not supported by an unmodifiable map.
inherited
-
removeWhere(
Value2Callback< Locale, Localization, bool> test) → void -
This operation is not supported by an unmodifiable map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
Locale key, Value1Callback< Localization, Localization> update, {Callback<Localization> ? ifAbsent}) → Localization -
This operation is not supported by an unmodifiable map.
inherited
-
updateAll(
Value2Callback< Locale, Localization, Localization> update) → void -
This operation is not supported by an unmodifiable map.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
Object? locale) → Localization -
Retrieve the Localization corresponding to
locale
.override -
operator []=(
Locale key, Localization value) → void -
This operation is not supported by an unmodifiable map.
inherited