ErrorWidget constructor

ErrorWidget(Object exception)

Creates a widget that displays the given error message.

Implementation

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