NodeEditor class

Generic Flutter canvas. Semantic actions and document persistence belong to the host.

Inheritance

Constructors

NodeEditor({Key? key, required GraphController controller, GraphNodeWidgetBuilder? nodeBuilder, GraphNodeWidgetBuilder? headerBuilder, GraphPortWidgetBuilder? portLabelBuilder, GraphPortWidgetBuilder? portBuilder, GraphFieldWidgetBuilder? fieldBuilder, Widget frameBuilder(BuildContext, GraphFrame)?, Widget commentBuilder(BuildContext, GraphComment)?, Future<void> contextMenuBuilder(BuildContext, GraphPoint, GraphScene)?, List<Widget> overlays = const [], Future<GraphNode?> onCreateNode(GraphNodePickerRequest)?, ValueChanged<String>? onError, GraphExecutionVisualSource? executionSource, GraphEditorTheme theme = const GraphEditorTheme(), ConnectionRouting routing = ConnectionRouting.bezier, bool virtualize = true, double overscan = 160, bool showMinimap = true, bool snapToGrid = false, double gridSize = 24, String? connectionLabel(GraphConnection)?, GraphFragment captureFragment()?, void pasteFragment(GraphFragment fragment)?, VoidCallback? onFind})
const

Properties

captureFragment → GraphFragment Function()?
Host payload and dependency handling shared by shortcuts and context menus.
final
commentBuilder → Widget Function(BuildContext, GraphComment)?
final
connectionLabel → String? Function(GraphConnection)?
final
contextMenuBuilder → Future<void> Function(BuildContext, GraphPoint, GraphScene)?
final
controller → GraphController
final
executionSource → GraphExecutionVisualSource?
final
fieldBuilder → GraphFieldWidgetBuilder?
final
frameBuilder → Widget Function(BuildContext, GraphFrame)?
final
gridSize → double
final
hashCode → int
The hash code for this object.
no setterinherited
headerBuilder → GraphNodeWidgetBuilder?
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
nodeBuilder → GraphNodeWidgetBuilder?
final
onCreateNode → Future<GraphNode?> Function(GraphNodePickerRequest)?
final
onError → ValueChanged<String>?
final
onFind → VoidCallback?
final
overlays → List<Widget>
final
overscan → double
final
pasteFragment → void Function(GraphFragment fragment)?
final
portBuilder → GraphPortWidgetBuilder?
final
portLabelBuilder → GraphPortWidgetBuilder?
final
routing → ConnectionRouting
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showMinimap → bool
final
snapToGrid → bool
final
theme → GraphEditorTheme
final
virtualize → bool
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<NodeEditor>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited