Catcher2 constructor
Catcher2({
- Widget? rootWidget,
- void runAppFunction()?,
- Catcher2Options? releaseConfig,
- Catcher2Options? debugConfig,
- Catcher2Options? profileConfig,
- bool enableLogger = true,
- bool ensureInitialized = false,
Builds catcher 2 instance
Implementation
Catcher2({
this.rootWidget,
this.runAppFunction,
this.releaseConfig,
this.debugConfig,
this.profileConfig,
this.enableLogger = true,
this.ensureInitialized = false,
GlobalKey<NavigatorState>? navigatorKey,
}) : assert(
rootWidget != null || runAppFunction != null,
'You need to provide rootWidget or runAppFunction',
) {
_configure(navigatorKey);
}