L10nCupertinoApp constructor

L10nCupertinoApp({
  1. Key? key,
  2. Widget? home,
  3. Locale? locale,
  4. CupertinoThemeData? theme,
  5. String? initialRoute,
  6. TransitionBuilder? builder,
  7. RouteFactory? onGenerateRoute,
  8. Iterable<Locale>? supportedLocales,
  9. bool debugShowCheckedModeBanner = false,
  10. Iterable<LocalizationsDelegate>? localizationsDelegates,
})

Implementation

L10nCupertinoApp(
    {Key? key,
    Widget? home,
    Locale? locale,
    CupertinoThemeData? 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);