AppStateExtension extension

on

Properties

allowChangeLocale bool
Allow the app directly change the Locale
no setter
allowChangeTheme bool
Allow the app to change the theme
no setter
allowChangeUI bool
Allow the app to directly change the UI design
no setter
builder TransitionBuilder?
if neither routes, or onGenerateRoute was passed.
no setter
checkerboardOffscreenLayers bool?
Checkerboard layers rendered offscreen bitmaps.
getter/setter pair
checkerboardRasterCacheImages bool?
Checkerboard raster cache to speed up overall rendering.
getter/setter pair
color Color?
Returns the Color passed to the app.
no setter
context BuildContext?
Retrieve the 'latest' context
no setter
debugPaintBaselinesEnabled bool?
RenderBox paints a line at its baselines.
getter/setter pair
debugPaintLayerBordersEnabled bool?
Layer paints a box around its bound.
getter/setter pair
debugPaintPointersEnabled bool?
Objects flash while they are being tapped.
getter/setter pair
debugPaintSizeEnabled bool?
Each RenderBox to paint a box around its bounds.
getter/setter pair
debugRepaintRainbowEnabled bool?
Overlay a rotating set of colors when repainting layers in checked mode.
getter/setter pair
debugShowCheckedModeBanner bool?
Shows a little "DEBUG" banner in checked mode.
getter/setter pair
debugShowMaterialGrid bool?
If true, it paints a grid overlay on Material apps.
getter/setter pair
inDebugMode bool
Determines if running in an IDE or in production.
no setter
initialRoute String?
Returns to the initial route used by the app.
no setter
locale Locale?
Returns the device's possibly ever-changing Locale. Notice how the AppState's locale is always the determined locale.
getter/setter pair
localeResolutionCallback LocaleResolutionCallback?
Resolves the app's locale.
no setter
localizationsDelegates Iterable<LocalizationsDelegate>?
Returns the App's current localizations delegates.
no setter
The list of observers for the Navigator for this app.
no setter
onGenerateRoute RouteFactory?
The route generator used when the app is navigated to a named route.
no setter
onGenerateTitle GenerateAppTitle?
Routine used to generate the App's title.
no setter
onUnknownRoute RouteFactory?
Called when onGenerateRoute fails except for the initialRoute.
no setter
routes Map<String, WidgetBuilder>?
Returns the routes used by the App's View.
no setter
scaffoldMessengerKey GlobalKey<ScaffoldMessengerState>?
Return the navigator key used by the App's View.
no setter
showPerformanceOverlay bool?
If true, it turns on a performance overlay.
getter/setter pair
showSemanticsDebugger bool?
Shows an overlay of accessibility information
getter/setter pair
supportedLocales List<Locale>?
getter, supportedLocales, returns a List of the App's locales.
no setter
switchUI bool
Use Cupertino UI in Android and vice versa.
no setter
title String
Returns the title for the App's View.
no setter
useCupertino bool
Indicates if the App is running the Cupertino interface theme.
no setter
useMaterial bool
Indicates if the App is running the Material interface theme.
no setter

Methods

buildInherited() → void
Rebuild dependencies to the root State object's InheritedWidget
catchError(Object? ex, {StackTrace? stack, String? library, DiagnosticsNode? context, IterableFilter<String>? stackFilter, InformationCollector? informationCollector, bool? silent}) → void
Catch and explicitly handle the error.
changeLocale(Locale? locale) Future<bool>
Explicitly change the app's locale.
changeUI(String ui) → void
Explicitly change to a particular interface.
dependOnInheritedWidget(BuildContext? context) → void
Link a widget to a InheritedWidget in the root State object.
notifyClients() → void
same as above. Rebuild dependencies to the root State object's InheritedWidget
refresh() → void
Refresh the 'current/latest' State object and 'root/first' State object.
setState(VoidCallback fn) → void
Refresh the root State object with the passed function.