IntlKey class
Represents a internationalized key from a IntlMessages.
Constructors
-
IntlKey(IntlMessages intlMessages, String key, {Map<
String, dynamic> ? variables, IntlVariablesProvider? variablesProvider})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- intlMessages → IntlMessages
-
The messages tables.
final
- key → String
-
Key of the message at intlMessages table.
final
- message → String?
-
The built message for this key.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- singleCall ↔ bool
-
If
true
, message will be generate only one time and cached. If locale changes after message is built and cached, it can be in a wrong locale.getter/setter pair -
variables
→ Map<
String, dynamic> ? -
The variables to pass when calling MessageBuilder.
final
- variablesProvider → IntlVariablesProvider?
-
The variables provider Function to pass when calling MessageBuilder.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
withVariables(
Map< String, dynamic> variables) → IntlKey -
Returns a copy of this IntlKey with
variables
. -
withVariablesProvider(
IntlVariablesProvider variablesProvider) → IntlKey -
Returns a copy of this IntlKey with
variablesProvider
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited