ArbClient class

An object that handles translations dynamically, by processing the .arb JSON on demand.

Constructors

ArbClient(String arbSource, {String? locale, MissingKeyCallback? onMissingKeyCallback, bool? exceptionOnMissingKey, MissingKeyDefaultValue? onMissingKeyDefaultValue})

Properties

arbSource String
Gets the arbSource being used by this client.
no setter
exceptionOnMissingKey bool
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
locale String?
getter/setter pair
onMissingKeyCallback MissingKeyCallback
getter/setter pair
onMissingKeyDefaultValue MissingKeyDefaultValue
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

get(String key, [Map<String, dynamic> arguments = const {}]) String
Returns the value of the given key, processed with the given arguments, if any. The arguemtns are a list of values, in the order they appear in the arb value referenced by key.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reloadArb(String arbSource, {String? locale}) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String key) String
Syntactic sugar for get(key, []). Intended for being used when no arguments are needed.