OrgChartController<E> constructor

OrgChartController<E>({
  1. required List<E> items,
  2. Size boxSize = const Size(200, 100),
  3. double spacing = 20,
  4. double runSpacing = 50,
  5. required String? idProvider(
    1. E data
    ),
  6. required String? toProvider(
    1. E data
    ),
  7. void toSetter(
    1. E data,
    2. String? newID
    )?,
  8. OrgChartOrientation orientation = OrgChartOrientation.leftToRight,
})

Implementation

OrgChartController({
  required List<E> items,
  this.boxSize = const Size(200, 100),
  // this.spacing = const Offset(20, 50),
  this.spacing = 20,
  this.runSpacing = 50,
  required this.idProvider,
  required this.toProvider,
  this.toSetter,
  OrgChartOrientation orientation = OrgChartOrientation.leftToRight,
})  : _orientation = orientation,
      super() {
  this.items = items;
}