Event<T, B> class Models

Describes a generic event.

The generic T is the type of the event and is usually an enum, while B is the body of the event which is typically a class for which some change has happened.

Constructors

Event(T type, B body)
Constructs an Event instance based on the type and the body.

Properties

body ↔ B
The body of the event that is usually a changed class.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
type ↔ T
The type of the event that is usually an element of an enum.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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