I18nPort class abstract
The localization contract.
- Implementers
Constructors
- I18nPort()
Properties
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
keywithparams({name}placeholders); pluralizes viapluralCountagainstkey.one/key.other-style subkeys.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited