app_runner library
Classes
- RunnerConfiguration
- Runner Configuration, takes in itself:
- WidgetConfiguration
- Widget configuration, takes in itself:
- ZoneConfiguration
- Zone configuration, takes in itself:
Extensions
- ReloadableX on BuildContext
- Extension for ReloadableWidget on BuildContext.
Functions
-
appRunner(
RunnerConfiguration config) → void - Starts the zone and attaches the app to the screen.
-
reloadWidget(
BuildContext context) → void - Reloads widgets when reloadWidget is called. Reloads occurs by changing UniqueKey.
Typedefs
- ErrorWidgetBuilder = Widget Function(BuildContext context, FlutterErrorDetails errorDetails)
- Custom Builder for error handling in debug and profile mode
- InitializeBinding = WidgetsBinding Function()
- Callback to use your WidgetsBinding instance
-
InitializeFunctions
= FutureOr<
void> Function(WidgetsBinding binding) - A callback to initialize your code. Called during splash display (if any)
- OnError = void Function(Object error, StackTrace stackTrace)
-
The
onError
function is used both to handle asynchronous errors by overriding ZoneSpecification.handleUncaughtError inzoneSpecification
, if any, and to handle errors thrown synchronously by the call tobody
.