LocaleAddon constructor
LocaleAddon(
- List<
Locale> locales, [ - 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),
);