ErrorHandler<T extends Error> class
wrap the HandleError
function in a callable class
to use the covariant argument
- Available Extensions
Constructors
-
ErrorHandler(HandleError<
T> _call, {bool report = false, bool shouldRethrow = false}) -
a simple constructor
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- report → bool
-
notifies if the error must be notified
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shouldRethrow → bool
-
notifies if the error must be rethrown
final
Methods
-
call(
covariant Error error) → T? -
allows a
covariant
therefore any Error can be passed as argument -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited