const
MaterialApp(- {Key? key,
- Widget? home,
- String? initialRoute,
- String title,
- Color? color,
- ThemeData? theme,
- ThemeData? darkTheme,
- ThemeData? highContrastTheme,
- ThemeData? highContrastDarkTheme,
- ThemeMode? themeMode,
- Duration themeAnimationDuration,
- Curves themeAnimationCurve,
- Locale? locale,
- Iterable<Locale> supportedLocales,
- bool debugShowMaterialGrid,
- bool showPerformanceOverlay,
- bool checkerboardRasterCacheImages,
- bool checkerboardOffscreenLayers,
- bool showSemanticsDebugger,
- bool debugShowCheckedModeBanner,
- String? restorationScopeId,
- bool useInheritedMediaQuery,
- Map<String, Widget> routes}
)
Implementation
const factory MaterialApp(
{final Key? key,
final Widget? home,
final String? initialRoute,
final String title,
final Color? color,
final ThemeData? theme,
final ThemeData? darkTheme,
final ThemeData? highContrastTheme,
final ThemeData? highContrastDarkTheme,
final ThemeMode? themeMode,
final Duration themeAnimationDuration,
final Curves themeAnimationCurve,
final Locale? locale,
final Iterable<Locale> supportedLocales,
final bool debugShowMaterialGrid,
final bool showPerformanceOverlay,
final bool checkerboardRasterCacheImages,
final bool checkerboardOffscreenLayers,
final bool showSemanticsDebugger,
final bool debugShowCheckedModeBanner,
final String? restorationScopeId,
final bool useInheritedMediaQuery,
final Map<String, Widget> routes}) = _$MaterialApp;