I18nPort class abstract

The localization contract.

Implementers

Constructors

I18nPort()

Properties

hashCode → int
The hash code for this object.
no setterinherited
locale → AppLocale
The currently active locale.
no setter
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
onLocaleChanged(void listener(AppLocale locale)) → void Function()
Subscribes to locale changes; returns the unsubscribe function.
setLocale(AppLocale locale) → Future<void>
Switches the active locale (loads its table if needed) and notifies listeners.
toString() → String
A string representation of this object.
inherited
translate(String key, {Map<String, Object?> params = const {}, int? pluralCount}) → ResolvedMessage
Translates key with params ({name} placeholders); pluralizes via pluralCount against key.one/key.other-style subkeys.

Operators

operator ==(Object other) → bool
The equality operator.
inherited