JsonErrorWidgetBuilderModel class
Creates a widget that displays the given exception.
The message will be the stringification of the given exception, unless computing that value itself throws an exception, in which case it will be the string "Error".
If this object is inspected from an IDE or the devtools, and the original exception is a FlutterError object, the original exception itself will be shown in the inspection output.
- Inheritance
-
- Object
- JsonClass
- JsonWidgetBuilderModel
- JsonErrorWidgetBuilderModel
Constructors
-
JsonErrorWidgetBuilderModel(Map<
String, dynamic> args, {required Object exception}) -
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Abstract function that concrete classes must implement. This must encode
the internal data model to a JSON compatible representation.
override
-
toString(
) → String -
Returns the string encoded JSON representation for this class. This will
remove all null values and empty collections from the returned string.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromDynamic(
dynamic map, {Map< String, dynamic> args = const {}, JsonWidgetRegistry? registry}) → JsonErrorWidgetBuilderModel -
maybeFromDynamic(
dynamic map, {Map< String, dynamic> args = const {}, JsonWidgetRegistry? registry}) → JsonErrorWidgetBuilderModel?