DateTimeDictionary class
Fournit les libellés localisés pour chaque clé, avec possibilité d’overrides.
Constructors
-
DateTimeDictionary(Locale locale, {Map<
DateTimeDictKey, String> overrides = const {}})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- locale → Locale
-
final
-
overrides
→ Map<
DateTimeDictKey, String> -
Permet de surcharger individuellement n’importe quelle clé,
quelle que soit la locale.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
translate(
DateTimeDictKey key) → String -
Traduit la clé
key, en priorité depuis overrides, sinon depuis la locale.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
of(
BuildContext context, {Map< DateTimeDictKey, String> overrides = const {}}) → DateTimeDictionary - Accès rapide via le BuildContext. Pour fournir des overrides, on peut remplacer cet appel par :