LocaleAddon constructor

LocaleAddon(
  1. List<Locale> locales, [
  2. List<LocalizationsDelegate> delegates = const []
])

Implementation

LocaleAddon(
  this.locales, [
  List<LocalizationsDelegate<dynamic>> delegates = const [],
])  : assert(locales.isNotEmpty, 'locales cannot be empty'),
      super(
        name: 'Locale',
        modeBuilder: (locale) => LocaleMode(locale, delegates),
      );