ModelLocalizedValue class

Define a model LocalizedValue that stores locale and text pairs.

The base value is given as value. If not given, an empty LocalizedValue is used.

ロケールとテキストのペアを保存するLocalizedValueをモデルとして定義します。

ベースの値をvalueとして与えます。与えられなかった場合は何も設定されていないLocalizedValueが利用されます。

Inheritance
Implemented types
Annotations

Constructors

ModelLocalizedValue([LocalizedValue<String>? value])
Define a model LocalizedValue that stores locale and text pairs.
const
factory
ModelLocalizedValue.fromJson(DynamicMap json)
Convert from json map to ModelLocalizedValue.
factory
ModelLocalizedValue.fromList(List<LocalizedLocaleValue<String>> list)
Define a model LocalizedValue that stores locale and text pairs.
const
factory
ModelLocalizedValue.fromServer([LocalizedValue<String>? value])
Used to disguise the retrieval of data from the server.
const
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value LocalizedValue<String>
Actual value.
no setteroverride

Methods

compareTo(ModelLocalizedValue other) int
Compares this object to another object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() DynamicMap
Methods for Json serialization.
override
toString() String
A string representation of this object.
override

Operators

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

Constants

kLocalizedKey → const String
Key to save translation data.
kSourceKey → const String
Key to store the data source.
typeString → const String
Type key.