L10nMaterialApp constructor
L10nMaterialApp({
- Key? key,
- Widget? home,
- Locale? locale,
- ThemeData? theme,
- String? initialRoute,
- TransitionBuilder? builder,
- RouteFactory? onGenerateRoute,
- Iterable<
Locale> ? supportedLocales, - bool debugShowCheckedModeBanner = false,
- Iterable<
LocalizationsDelegate> ? localizationsDelegates,
Implementation
L10nMaterialApp(
{Key? key,
Widget? home,
Locale? locale,
ThemeData? theme,
String? initialRoute,
TransitionBuilder? builder,
RouteFactory? onGenerateRoute,
Iterable<Locale>? supportedLocales,
bool debugShowCheckedModeBanner = false,
Iterable<LocalizationsDelegate<dynamic>>? localizationsDelegates})
: assert(supportedLocales != null),
super(
key: key,
home: home,
builder: builder,
initialRoute: initialRoute,
onGenerateRoute: onGenerateRoute,
theme: theme,
locale: locale,
localizationsDelegates: localizationsDelegates ??
[
L10nLoader.delegate,
GlobalCupertinoLocalizations.delegate,
GlobalMaterialLocalizations.delegate,
GlobalWidgetsLocalizations.delegate
],
supportedLocales: supportedLocales!,
debugShowCheckedModeBanner: debugShowCheckedModeBanner);