ListTreeView constructor
ListTreeView({
- required IndexedBuilder itemBuilder,
- PressCallback? onTap,
- PressCallback? onLongPress,
- TreeViewController? controller,
- bool toggleNodeOnTap = true,
- bool shrinkWrap = false,
- bool removeTop = true,
- bool removeBottom = true,
- bool reverse = false,
- EdgeInsetsGeometry padding = const EdgeInsets.all(0),
Implementation
ListTreeView({
required this.itemBuilder,
this.onTap,
this.onLongPress,
this.controller,
this.toggleNodeOnTap = true,
this.shrinkWrap = false,
this.removeTop = true,
this.removeBottom = true,
this.reverse = false,
this.padding = const EdgeInsets.all(0),
}) : assert(controller != null, "The TreeViewController can't be empty");