FlutterGraphWidget constructor
FlutterGraphWidget({
- Key? key,
- required dynamic data,
- required DataConvertor convertor,
- required GraphAlgorithm algorithm,
- Options? options,
Implementation
FlutterGraphWidget({
Key? key,
required this.data,
required this.convertor,
required this.algorithm,
Options? options,
}) : options = options ?? Options(),
super(key: key) {
graph.options = options;
this.options.graph = graph;
graph.convertor = convertor;
graph.algorithm = algorithm;
algorithm.setGlobalData(rootAlg: algorithm, graph: this.graph);
}