GraphEvent class sealed
Base class for all graph events emitted by NodeFlowController.
Using a sealed class hierarchy enables exhaustive pattern matching:
void onEvent(GraphEvent event) {
switch (event) {
case NodeAdded(:final node):
print('Node added: ${node.id}');
case NodeRemoved(:final node):
print('Node removed: ${node.id}');
// ... handle all cases
}
}
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