GraphView<T> constructor
GraphView<T> ({
- required Set<
T> nodes, - required Set<
Edge< edges,T> > - required Widget nodeBuilder(
- T data,
- BuildContext context
- required Widget edgeBuilder(
- Edge<
T> edge, - double rotation,
- BuildContext context
- Edge<
- required double width,
- required double height,
- EdgeInsets padding = const EdgeInsets.all(10),
- Duration duration = const Duration(milliseconds: 400),
- Curve curve = Curves.easeInOutExpo,
- GraphController<
T> ? controller, - GraphLayoutAlgorithm algorithm = const FruchtermanReingoldAlgorithm(),
- bool animated = true,
- bool draggableNodes = true,
- bool draggingPinsNodes = false,
Implementation
GraphView({
required this.nodes,
required this.edges,
required this.nodeBuilder,
required this.edgeBuilder,
required this.width,
required this.height,
this.padding = const EdgeInsets.all(10),
this.duration = const Duration(milliseconds: 400),
this.curve = Curves.easeInOutExpo,
this.controller,
this.algorithm = const FruchtermanReingoldAlgorithm(),
this.animated = true,
this.draggableNodes = true,
this.draggingPinsNodes = false,
}) {
assert(_nodesContainsAllEdgeNodes(nodes, edges));
}