ErrorWidget.withDetails constructor

ErrorWidget.withDetails({
  1. String message = '',
  2. FlutterError? error,
})

Creates a widget that displays the given error message.

An explicit FlutterError can be provided to be reported to inspection tools. It need not match the message.

Implementation

ErrorWidget.withDetails({ this.message = '', FlutterError? error })
  : _flutterError = error,
    super(key: UniqueKey());