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
FlutterError.reportError, which is typically called with the same
FlutterErrorDetailsobject immediately prior to