ErrorWidget(Object exception)

Creates a widget that displays the given error message.

Source

ErrorWidget(Object exception) : message = _stringify(exception),
    super(key: new UniqueKey());