LocalizationAddon constructor
LocalizationAddon({
- required List<
Locale> locales, - required List<
LocalizationsDelegate> localizationsDelegates, - Locale? initialLocale,
Implementation
LocalizationAddon({
required this.locales,
required this.localizationsDelegates,
this.initialLocale,
}) : assert(
locales.isNotEmpty,
'locales cannot be empty',
),
assert(
initialLocale == null || locales.contains(initialLocale),
'initialLocale must be in locales',
),
super(
name: 'Locale',
);