GameEvent class abstract

Base type for every event flowing through a GameEventBus. Extend this to add a new gameplay event — the bus itself never needs to change. Deliberately a plain abstract class, not sealed: a sealed hierarchy must live entirely inside this package, but a consuming game needs to define its own event subtypes (e.g. EntityDefeated, LevelCompleted) outside it.

Implementers

Constructors

GameEvent()
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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