ListFormat class final
Joins a list of strings according to locale-specific rules.
This is typically used for joining items with appropriate conjunctions (like 'and' or 'or') or punctuation (like commas).
Constructors
- ListFormat({Locale? locale, ListType type = ListType.and, ListStyle style = ListStyle.long})
- Creates a new list formatter.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
format(
List< String> list) → String - Locale-dependant concatenation of lists.
-
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