Signature for the constructor that is called when an error occurs while building a widget.
The argument provides information regarding the cause of the error.
- ErrorWidget.builder, which can be set to override the default ErrorWidget builder.
- FlutterError.reportError, which is typically called with the same FlutterErrorDetails object immediately prior to ErrorWidget.builder being called.
typedef ErrorWidgetBuilder = Widget Function(FlutterErrorDetails details);