ErrNotifier<T> class
abstract
A class that provides an error notification API.
- Implementers
- Annotations
-
- @sealed
Constructors
Properties
- hasError → bool
-
Whether or not there was an error.
true
is returned if lastError is not equal to the default value.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- lastError → T?
-
The latest error value that was notified most recently.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
log(
Object exception, [StackTrace? stack, Object? context]) → void - Calls all the registered listeners with error information, but without the error value unlike in set().
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
set(
T error, [Object? exception, StackTrace? stack, Object? context]) → void -
Sets
error
to lastError, and then calls all the registered listeners with the error passed in, along with related information if provided. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited