Catcher2 constructor

Catcher2({
  1. Widget? rootWidget,
  2. void runAppFunction()?,
  3. Catcher2Options? releaseConfig,
  4. Catcher2Options? debugConfig,
  5. Catcher2Options? profileConfig,
  6. bool enableLogger = true,
  7. bool ensureInitialized = false,
  8. GlobalKey<NavigatorState>? navigatorKey,
})

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);
}