Events are used to communicate between the FlNodeEditorController and the Widgets composing the Node Editor. Events can (where applicable) carry data to be used by the Widgets to update their state. Events can be used to trigger animations, or to update the state of the Widgets. Events can be handled by the Widgets to prevent the event from bubbling up to the parent Widgets. Event can be discarded using the isHandled flag to group Widgets rebuilds. There is no one to one match between controller emthods and events, the latter only exist if there is data to be passed or rebuilds to be triggered. Event base class for the FlNodeEditorController events bus.
It includes an id to identify the event, a isHandled flag to indicate if the event has been handled, and an isUndoable flag to indicate if the event can be undone.
Constructors
- NodeEditorEvent({required String id, bool isHandled = false, bool isUndoable = false})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- isHandled → bool
-
final
- isUndoable → bool
-
final
- 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
-
toJson(
Map< String, DataHandler> dataHandlers) → Map<String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited