displayError method

Widget displayError(
  1. FlutterErrorDetails details
)

Display the Error details in a widget. try..catch to ensure a widget is returned.

Implementation

Widget displayError(FlutterErrorDetails details) {
  Widget widget;
  try {
    widget = ErrorWidget.builder(details);
  } catch (ex) {
    widget = errorDisplayWidget(details);
  }
  return widget;
}