RelativeDateLocalization class
A model
class describing all data required for localizing a
RelativeDateTime
.
Constructors
-
RelativeDateLocalization({required String languageCode, required List<
String> timeUnitsSingular, required List<String> timeUnitsPlural, required String prepositionPast, required String prepositionFuture, required String atTheMoment, required List<FormatComponent> formatOrderPast, required List<FormatComponent> formatOrderFuture}) -
Creates a RelativeDateLocalization.
const
Properties
- atTheMoment → String
-
final
-
formatOrderFuture
→ List<
FormatComponent> -
final
-
formatOrderPast
→ List<
FormatComponent> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- languageCode → String
-
final
- prepositionFuture → String
-
final
- prepositionPast → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
timeUnitsPlural
→ List<
String> -
final
-
timeUnitsSingular
→ List<
String> -
final
Methods
-
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