App constructor

App({
  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 App({
  // 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 ??= App._(allowNewHandlers ?? true);