AppObject constructor

AppObject({
  1. FlutterExceptionHandler? errorHandler,
  2. ErrorWidgetBuilder? errorScreen,
  3. ReportErrorHandler? errorReport,
  4. bool? allowNewHandlers = true,
})

Supply an error handler to the App.

Implementation

// The parameters are deprecated.
factory AppObject({
  // ignore: avoid_unused_constructor_parameters
  FlutterExceptionHandler? errorHandler,
  // ignore: avoid_unused_constructor_parameters
  ErrorWidgetBuilder? errorScreen,
  // ignore: avoid_unused_constructor_parameters
  v.ReportErrorHandler? errorReport,
  bool? allowNewHandlers = true,
}) =>
    _this ??= AppObject._(allowNewHandlers ?? true);