Localization class

A set of localized messages/formats/etc. for locale

Inheritance

Constructors

Localization(Locale locale, Map<String, dynamic> localizations)
Creates a new instance of Localization
const

Properties

entries Iterable<MapEntry<String, dynamic>>
The map entries of this.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
internalMap Map<String, dynamic>
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<String>
The keys of this.
no setterinherited
length int
The number of key/value pairs in the map.
no setterinherited
locale Locale
The locale of this Localization
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values Iterable
The values of this.
no setterinherited

Methods

addAll(Map<String, dynamic> other) → void
This operation is not supported by an unmodifiable map.
inherited
addEntries(Iterable<MapEntry<String, dynamic>> entries) → void
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 and RV 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<String, dynamic, void> action) → void
Applies action to each key/value pair of the map.
inherited
map<K2, V2>(Value2Callback<String, dynamic, MapEntry<K2, V2>> transform) Map<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(String key, Callback ifAbsent) → dynamic
This operation is not supported by an unmodifiable map.
inherited
remove(Object? key) → dynamic
This operation is not supported by an unmodifiable map.
inherited
removeWhere(Value2Callback<String, dynamic, bool> test) → void
This operation is not supported by an unmodifiable map.
inherited
toString() String
A string representation of this object.
inherited
update(String key, Value1Callback update, {Callback? ifAbsent}) → dynamic
This operation is not supported by an unmodifiable map.
inherited
updateAll(Value2Callback<String, dynamic, dynamic> update) → void
This operation is not supported by an unmodifiable map.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](Object? key) → dynamic
Retrieve the localized value of key.
override
operator []=(String key, dynamic value) → void
This operation is not supported by an unmodifiable map.
inherited
operator |(String key) → dynamic
Prefer the indexing operator.