A class that provides an error notification API.
- hasError → bool
Whether or not there was an error.
trueis returned if lastError is not equal to the default value.read-only
- hashCode → int
The hash code for this object. [...]
- lastError → T
The latest error value that was notified most recently.
- runtimeType → Type
A representation of the runtime type of the object.
dynamic exception, [StackTrace stack, dynamic context]) → void
- Calls all the registered listeners with error information, but without the error value unlike in set().
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
T error, [dynamic exception, StackTrace stack, dynamic context]) → void
errorto lastError, and then calls all the registered listeners with the error passed in, along with related information if provided.
) → String
Returns a string representation of this object.