FluentBundle class
Message bundles are single-language stores of translation resources. They are responsible for formatting message values and attributes to strings.
Constructors
- FluentBundle(String locale, {bool useIsolating = false, TextTransform transform = identity})
Properties
-
functions
→ Map<
String, Function> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- locale → String
-
final
-
messages
→ Map<
String, Message> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transform → TextTransform
-
final
- useIsolating → bool
-
final
Methods
-
addMessages(
String source) → void -
format(
String id, {Map< String, dynamic> args = const {}, List<Error> ? errors, String? attribute}) → String? -
hasMessage(
String id) → bool -
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