AppViewState<T extends StatefulWidget> constructor
AppViewState<T extends StatefulWidget> ({
- AppController? con,
- List<
ControllerMVC> ? controllers, - Object? object,
- RouteInformationProvider? routeInformationProvider,
- RouteInformationParser<
Object> ? routeInformationParser, - RouterDelegate<
Object> ? routerDelegate, - BackButtonDispatcher? backButtonDispatcher,
- GlobalKey<
ScaffoldMessengerState> ? scaffoldMessengerKey, - Map<
String, WidgetBuilder> ? routes, - String? initialRoute,
- RouteFactory? onGenerateRoute,
- RouteFactory? onUnknownRoute,
- TransitionBuilder? builder,
- String? title,
- GenerateAppTitle? onGenerateTitle,
- Color? color,
- ThemeData? theme,
- CupertinoThemeData? iOSTheme,
- ThemeData? darkTheme,
- ThemeMode? themeMode,
- Locale? locale,
- Iterable<
LocalizationsDelegate> ? localizationsDelegates, - LocaleListResolutionCallback? localeListResolutionCallback,
- LocaleResolutionCallback? localeResolutionCallback,
- Iterable<
Locale> ? supportedLocales, - bool? debugShowMaterialGrid,
- bool? showPerformanceOverlay,
- bool? checkerboardRasterCacheImages,
- bool? checkerboardOffscreenLayers,
- bool? showSemanticsDebugger,
- bool? debugShowWidgetInspector,
- bool? debugShowCheckedModeBanner,
- Map<
LogicalKeySet, Intent> ? shortcuts, - Map<
Type, Action< ? actions,Intent> > - String? restorationScopeId,
- ScrollBehavior? scrollBehavior,
- bool? debugPaintSizeEnabled,
- bool? debugPaintBaselinesEnabled,
- bool? debugPaintPointersEnabled,
- bool? debugPaintLayerBordersEnabled,
- bool? debugRepaintRainbowEnabled,
- FlutterExceptionHandler? errorHandler,
- ErrorWidgetBuilder? errorScreen,
- ReportErrorHandler? errorReport,
Implementation
AppViewState({
this.con,
List<ControllerMVC>? controllers,
Object? object,
this.navigatorKey,
this.routeInformationProvider,
this.routeInformationParser,
this.routerDelegate,
this.backButtonDispatcher,
this.scaffoldMessengerKey,
this.routes,
this.initialRoute,
this.onGenerateRoute,
this.onUnknownRoute,
this.navigatorObservers,
this.builder,
this.title,
this.onGenerateTitle,
this.color,
this.theme,
this.iOSTheme,
this.darkTheme,
this.themeMode,
this.locale,
this.localizationsDelegates,
this.localeListResolutionCallback,
this.localeResolutionCallback,
this.supportedLocales,
this.debugShowMaterialGrid,
this.showPerformanceOverlay,
this.checkerboardRasterCacheImages,
this.checkerboardOffscreenLayers,
this.showSemanticsDebugger,
this.debugShowWidgetInspector,
this.debugShowCheckedModeBanner,
this.shortcuts,
this.actions,
this.restorationScopeId,
this.scrollBehavior,
this.debugPaintSizeEnabled,
this.debugPaintBaselinesEnabled,
this.debugPaintPointersEnabled,
this.debugPaintLayerBordersEnabled,
this.debugRepaintRainbowEnabled,
FlutterExceptionHandler? errorHandler,
ErrorWidgetBuilder? errorScreen,
v.ReportErrorHandler? errorReport,
}) : super(
controller: con,
controllers: controllers,
object: object,
) {
// In case null was explicitly passed in.
routes ??= const <String, WidgetBuilder>{};
navigatorObservers ??= const <NavigatorObserver>[];
// title ??= '';
// color ??= Colors.blue;
debugShowMaterialGrid ??= false;
showPerformanceOverlay ??= false;
checkerboardRasterCacheImages ??= false;
checkerboardOffscreenLayers ??= false;
showSemanticsDebugger ??= false;
debugShowWidgetInspector ??= false;
debugShowCheckedModeBanner ??= true;
debugPaintSizeEnabled ??= false;
debugPaintBaselinesEnabled ??= false;
debugPaintPointersEnabled ??= false;
debugPaintLayerBordersEnabled ??= false;
debugRepaintRainbowEnabled ??= false;
assert(() {
/// Highlights UI while debugging.
debug.debugPaintSizeEnabled = debugPaintSizeEnabled ?? false;
debug.debugPaintBaselinesEnabled = debugPaintBaselinesEnabled ?? false;
debug.debugPaintPointersEnabled = debugPaintPointersEnabled ?? false;
debug.debugPaintLayerBordersEnabled =
debugPaintLayerBordersEnabled ?? false;
debug.debugRepaintRainbowEnabled = debugRepaintRainbowEnabled ?? false;
debug.debugRepaintTextRainbowEnabled =
debugRepaintRainbowEnabled ?? false;
return true;
}());
if (errorHandler != null || errorScreen != null || errorReport != null) {
// Supply a customized error handling.
_errorHandler = v.AppErrorHandler(
handler: errorHandler, builder: errorScreen, report: errorReport);
}
}