App constructor

const App({
  1. Color? defaultThemeColor,
  2. required String initialRoute,
  3. required List<GetPage> getPages,
  4. required Locale locale,
  5. required Translations translations,
  6. required List<SingleChildWidget> providers,
  7. ThemeBuilder? themeBuilder,
  8. Locale? fallbackLocale,
  9. List<NavigatorObserver>? navigatorObservers,
  10. Key? key,
})

Implementation

const App({
  this.defaultThemeColor,
  required this.initialRoute,
  required this.getPages,
  required this.locale,
  required this.translations,
  required this.providers,
  this.themeBuilder,
  this.fallbackLocale,
  this.navigatorObservers,
  Key? key,
})  : assert(defaultThemeColor != null || themeBuilder != null),
      super(key: key);