registerLocalizable method

void registerLocalizable(
  1. Localizable localizable
)

Registers localizable (once); it is told the current locale at once if one is set.

Implementation

void registerLocalizable(Localizable localizable) {
  if (_observers.contains(localizable)) return;
  _observers.add(localizable);
  final current = _currentLocale;
  if (current != null) localizable.localeChanged(current, this);
}