onLocalizationsDelegates method

  1. @mustCallSuper
Iterable<LocalizationsDelegate> onLocalizationsDelegates()

Implementation

@mustCallSuper
Iterable<LocalizationsDelegate<dynamic>> onLocalizationsDelegates() sync* {
  if (localizationsDelegates != null) {
    yield* localizationsDelegates!;
  }
  if (inLocalizationsDelegates != null) {
    yield* inLocalizationsDelegates!();
  }
  // Supply MaterialLocalizations just in case you're in Cupertino interface.
  yield DefaultMaterialLocalizations.delegate;
  // Very important to allow Material to Cupertino and back!
  yield v.I10nDelegate();
}