OmnyEvent class sealed
Base type for every event emitted on the Hub's EventBus.
Events are immutable facts ("something happened"). The hierarchy is sealed
so subscribers can switch exhaustively, and so the event aggregator and
(future) websocket/SSE streaming can serialize them uniformly.
Constructors
-
OmnyEvent.fromJson(Map<
String, dynamic> json) -
Decodes the JSON form produced by toJson.
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
payload(
) → Map< String, dynamic> - Event-specific payload fields.
-
toJson(
) → Map< String, dynamic> - JSON form (type + payload).
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited