L10nMaterialApp constructor

L10nMaterialApp({
  1. Key? key,
  2. Widget? home,
  3. Locale? locale,
  4. ThemeData? theme,
  5. String? initialRoute,
  6. TransitionBuilder? builder,
  7. RouteFactory? onGenerateRoute,
  8. Iterable<Locale>? supportedLocales,
  9. bool debugShowCheckedModeBanner = false,
  10. 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);