ARBItemSpecialData class
Plural or Select data Example:
{count, plural, zero{0 messages} other{{count} new messages}}
key - plural or select key, "count" in example
type - type of data plural/select
options - list of options, "zero","other"
with their metadata in example
Constructors
-
ARBItemSpecialData({required ARBItemSpecialDataKey key, required ARBItemSpecialDataType type, required List<
ARBItemSpecialDataOption> options}) -
const
- ARBItemSpecialData.parseFromString(String str)
-
creates new special data from string like:
{sex, select, male{His birthday} female{Her birthday} other{Their birthday}}
{count, plural, zero{You have no new messages} other{You have {count} new messages}}
factory
Properties
- fullText → String
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → ARBItemSpecialDataKey
-
final
-
options
→ List<
ARBItemSpecialDataOption> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → ARBItemSpecialDataType
-
final
- typeStr → String
-
no setter
Methods
-
findOptionByKey(
String key) → ARBItemSpecialDataOption? - Finds option by given key
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited