NodeFlowEvents<T> class
Comprehensive event system for the NodeFlowEditor
Organizes all callbacks into logical groups for better discoverability and maintainability.
Constructors
-
NodeFlowEvents({NodeEvents<
T> ? node, ConnectionEvents<T> ? connection, ViewportEvents? viewport, AnnotationEvents? annotation, ValueChanged<SelectionState< ? onSelectionChange, VoidCallback? onInit, ValueChanged<T> >FlowError> ? onError}) -
const
Properties
- annotation → AnnotationEvents?
-
Annotation events
final
-
connection
→ ConnectionEvents<
T> ? -
Connection-related events
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
node
→ NodeEvents<
T> ? -
Node-related events
final
-
onError
→ ValueChanged<
FlowError> ? -
Called when an error occurs
Useful for logging or showing error notifications
final
- onInit → VoidCallback?
-
Called when the editor is initialized and ready
final
-
onSelectionChange
→ ValueChanged<
SelectionState< ?T> > -
Called when the selection changes (nodes, connections, or annotations)
Provides the complete current selection state
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- viewport → ViewportEvents?
-
Viewport/canvas events (pan, zoom, taps on empty canvas)
final
Methods
-
copyWith(
{NodeEvents< T> ? node, ConnectionEvents<T> ? connection, ViewportEvents? viewport, AnnotationEvents? annotation, ValueChanged<SelectionState< ? onSelectionChange, VoidCallback? onInit, ValueChanged<T> >FlowError> ? onError}) → NodeFlowEvents<T> - Create a new events object with updated values
-
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