ErrorEvent<T> class Null safety

The event that is added to the Error stream.

Any event handlers registered with the EmpireViewModel.addOnStateChangedListener function will receive these types of events. The metaData property can be used to store any additional information you may want your error event handler to have access to.

Constructors

ErrorEvent(T error, {StackTrace? stackTrace, Map metaData = const {}})

Properties

error → T
final
hashCode int
The hash code for this object.
read-only, inherited
metaData Map
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stackTrace StackTrace?
final

Methods

getMetaData<E>(dynamic key) → E?
Tries to get a value from the metaData map by key.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited