OrgChartController<E> constructor

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

Implementation

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