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
-
- Object
- ModelFieldValue<
LocalizedValue< String> > - ModelLocalizedValue
- Implemented types
- Annotations
Constructors
-
ModelLocalizedValue([LocalizedValue<
String> ? value]) -
Define a model LocalizedValue that stores locale and text pairs.
constfactory
- ModelLocalizedValue.fromJson(DynamicMap json)
-
Convert from
json
map to ModelLocalizedValue.factory -
ModelLocalizedValue.fromList(List<
LocalizedLocaleValue< list)String> > -
Define a model LocalizedValue that stores locale and text pairs.
constfactory
-
ModelLocalizedValue.fromServer([LocalizedValue<
String> ? value]) -
Used to disguise the retrieval of data from the server.
constfactory
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.