OnEvent<E extends AppEvent> class

A strongly-typed event handler registration for AppEventListener.

Constructors

OnEvent(AppEventHandler<E> handler)
const

Properties

handler → AppEventHandler<E>
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

handle(BuildContext context, AppEvent event) → bool
Checks whether event matches E and executes handler.
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