LukeFlowCanvasController<T, E> class

A controller for managing the state and interactions of a LukeFlow canvas.

Constructors

LukeFlowCanvasController.new()
LukeFlowCanvasController

Properties

canvasKey GlobalKey<State<StatefulWidget>>
canvasKey
no setter
connections List<EdgeConnectionsModel<E>>
connections
no setter
data FlowCanvasModel<T, E>
data
no setter
hashCode int
The hash code for this object.
no setterinherited
listenable ValueListenable<FlowCanvasModel<T, E>>
listenable
no setter
nodes List<NodeModel<T, E>>
nodes
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
viewController CustomInteractiveViewerController
viewController
no setter

Methods

addConnection(EdgeConnectionsModel<E> connection) → void
addConnection
addNodes(List<NodeModel<T, E>> newNodes) → void
addNodes
clear() → void
clear
dispose() → void
dispose
frame({double padding = 200.0, Duration? animationDuration, Curve curve = Curves.easeInOut}) → void
frame
getOrCreateSocketKey(String socketId) GlobalKey<State<StatefulWidget>>
getOrCreateSocketKey
loadFromJson(Map<String, dynamic> data) → void
loadFromJson
loadFromJsonString(String data) → void
loadFromJsonString
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeConnectionWhere(bool test(EdgeConnectionsModel<E>)) → void
removeConnectionWhere
removeNodeWhere(bool test(NodeModel)) → void
removeNodeWhere
setConnections(List<EdgeConnectionsModel<E>> connections) → void
setConnections
setNodes(List<NodeModel<T, E>> nodes) → void
setNodes
toJson() Map<String, dynamic>
toJson
toJsonString() String
toJsonString
toString() String
A string representation of this object.
inherited
update() → void
update
updateConnection(EdgeConnectionsModel<E> edgeConnection) → dynamic
updateConnection
updateNode(NodeModel node) → dynamic
updateNode

Operators

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