App class

An Application.

Constructors

App.create({required Widget widget, List<AppProvider>? appProviders, GlobalKey<NavigatorState>? navigatorKey, List<ErrorListener>? errorListeners})
Creates the app.
factory

Properties

appProviders List<AppProvider>?
The app providers.
final
errorListeners List<ErrorListener>
The error listeners.
final
hashCode int
The hash code for this object.
no setterinherited
isTesting bool
Return true if app is in testing mode.
no setter
The navigator context.
no setter
The navigator key.
no setter
router RouterWidgetState?
The state of root router.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceLocator ServiceLocator
The service locator.
final
widget Widget
The app widget.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run([void appRunner(Widget widget)?]) Future<void>
Runs the app.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

bootTesting(Future<void> bootTesting(App)) → void
Define a closure to be run on boot when test mode is enabled.
clear() Future<void>
Clears the app.
setTesting() → void
Set testing mode.