AppStateExtension extension

on

Properties

context BuildContext?
Retrieve the 'latest' context
no setter
inDebugMode bool
Determines if running in an IDE or in production.
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

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
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.