ErrNotifier<T> class

A class that provides an error notification API.

Implementers
Annotations
  • @sealed

Constructors

ErrNotifier()

Properties

hasError → bool
Whether or not there was an error. true is returned if lastError is not equal to the default value.
read-only
hashCode → int
The hash code for this object. [...]
read-only, inherited
lastError → T
The latest error value that was notified most recently.
read-only
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

log(dynamic exception, [StackTrace stack, dynamic 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 non-existent method or property is accessed. [...]
inherited
set(T error, [dynamic exception, StackTrace stack, dynamic 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
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator. [...]
inherited