GraphComponent constructor

GraphComponent({
  1. required dynamic data,
  2. required GraphAlgorithm algorithm,
  3. required BuildContext context,
  4. required DataConvertor convertor,
  5. Options? options,
})

Implementation

GraphComponent({
  required this.data,
  required this.algorithm,
  required this.context,
  required this.convertor,
  Options? options,
}) {
  super.camera = CameraComponent(world: world)..ancestors(includeSelf: true);
  this.options = options ?? Options();
}