LukeFlowCanvas<T, E> constructor
const
LukeFlowCanvas<T, E> ({
- Key? key,
- required LukeFlowCanvasController<
T, E> controller, - required Widget nodeBuilder(
- NodeModel<
T, E> node
- NodeModel<
- Widget socketBuilder(
- NodeModel<
T, E> node, - NodeSocketModel<
E> socket
- NodeModel<
- LukeEdgePainter edgeBuilder(
- Offset source,
- Offset target,
- EdgeConnectionsModel<
E> edgeConnection, - double dashOffset,
- double socketWidth = 20,
- double socketHeight = 20,
- double socketRadius = 100,
- double width = 2024 * 8,
- double height = 2024 * 8,
- BackgroundGridSettings? bacgrkoundGridSettings,
- BackgroundGridSettings? secondaryBacgrkoundGridSettings,
- dynamic onUpdate(
- List<
NodeModel< nodes,T, E> > - List<
EdgeConnectionsModel< connectionsE> >
- List<
- dynamic onMouseMove(
- Vector2 position
- dynamic onConnectionError(
- EdgeConnectionsModel<
E> connection
- EdgeConnectionsModel<
- dynamic onEdgeDrop(
- NodeSocketModel<
E> source, - Vector2 dropPosition
- NodeSocketModel<
- dynamic onNodesDeleted()?,
- dynamic onDoubleTap(
- Vector2 mousePosition
- EdgeConnectionsModel<
E> ? onBeforeConnectionCreate(- EdgeConnectionsModel<
E> connection, - NodeSocketModel<
E> fromSocket, - NodeSocketModel<
E> toSocket
- EdgeConnectionsModel<
Implementation
const LukeFlowCanvas({
super.key,
required this.controller,
required this.nodeBuilder,
this.socketBuilder,
this.edgeBuilder,
this.socketWidth = 20,
this.socketHeight = 20,
this.socketRadius = 100,
this.width = 2024 * 8,
this.height = 2024 * 8,
this.bacgrkoundGridSettings,
this.secondaryBacgrkoundGridSettings,
this.onUpdate,
this.onMouseMove,
this.onConnectionError,
this.onEdgeDrop,
this.onNodesDeleted,
this.onDoubleTap,
this.onBeforeConnectionCreate,
});