LukeFlowCanvas<T> constructor
const
LukeFlowCanvas<T> ({
- Key? key,
- required List<
NodeModel< nodes,T> > - required Widget nodeBuilder(
- NodeModel<
T> node
- NodeModel<
- required LukeFlowCanvasController<
T> controller, - Widget socketBuilder(
- NodeModel<
T> node, - NodeSocketModel socket
- NodeModel<
- double socketWidth = 20,
- double socketHeight = 20,
- double socketRadius = 100,
- List<
EdgeConnectionsModel> initialConnections = const [], - dynamic onUpdate(
- List<
NodeModel< nodes,T> > - List<
EdgeConnectionsModel> connections
- List<
- double width = 2024 * 5,
- double height = 2024 * 5,
- dynamic onMouseMove(
- Vector2 position
- BackgroundGridSettings? bacgrkoundGridSettings,
- dynamic onConnectionError(
- EdgeConnectionsModel connection
- dynamic onEdgeDrop(
- NodeSocketModel source,
- Vector2 dropPosition
- dynamic onNodesDeleted()?,
- dynamic onDoubleTap(
- Vector2 mousePosition
Implementation
const LukeFlowCanvas({
super.key,
required this.nodes,
required this.nodeBuilder,
required this.controller,
this.socketBuilder,
this.socketWidth = 20,
this.socketHeight = 20,
this.socketRadius = 100,
this.initialConnections = const [],
this.onUpdate,
this.width = 2024 * 5,
this.height = 2024 * 5,
this.onMouseMove,
this.bacgrkoundGridSettings,
this.onConnectionError,
this.onEdgeDrop,
this.onNodesDeleted,
this.onDoubleTap,
});