ARBItem class
ARB item model Example:
"pageHomeTitle" : "Welcome {firstName}", "@pageHomeTitle" : { "description" : "Welcome message on the Home screen", "placeholders": { "firstName": {} } }
number - numeric position in the file key - "pageHomeTitle" in example value - "Welcome {firstName}" in example plurals - example doesn't contain plurals selects - example doesn't contain selects annotation - item annotation (optional) ("@pageHomeTitle" in example)
- Mixed-in types
Constructors
-
ARBItem.new({required int number, required ARBItemKey key, required String value, List<
ARBItemSpecialData> plurals = const [], List<ARBItemSpecialData> selects = const [], ARBItemAnnotation? annotation}) -
const
Properties
- annotation → ARBItemAnnotation?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasPlaceholders → bool
-
no setter
- hasPlurals → bool
-
no setter
- hasSelects → bool
-
no setter
- key → ARBItemKey
-
final
- number → int
-
final
-
plurals
→ List<
ARBItemSpecialData> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selects
→ List<
ARBItemSpecialData> -
final
- value → String
-
final
Methods
-
cloneWith(
{String? value, ARBItemAnnotation? annotation, List< ARBItemSpecialData> ? plurals, List<ARBItemSpecialData> ? selects}) → ARBItem -
findPlaceholderByKey(
ARBItemKey key) → ARBItemAnnotationPlaceholder? - Finds placeholder by given key
-
findPluralByKey(
ARBItemSpecialDataKey key) → ARBItemSpecialData? - Finds plural by given key
-
findSelectByKey(
ARBItemSpecialDataKey key) → ARBItemSpecialData? - Finds select 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