EasyI18nDelegate constructor

EasyI18nDelegate({
  1. required List<Locale> supportedLocales,
})

Implementation

EasyI18nDelegate({required this.supportedLocales})
    : assert(supportedLocales.isNotEmpty) {
  localizationsDelegates = [
    I18nDelegate(locales: supportedLocales),
    GlobalMaterialLocalizations.delegate,
    GlobalWidgetsLocalizations.delegate,
    GlobalCupertinoLocalizations.delegate,
    DefaultCupertinoLocalizations.delegate,
  ];
}