ListTreeView constructor

ListTreeView({
  1. required IndexedBuilder itemBuilder,
  2. PressCallback? onTap,
  3. PressCallback? onLongPress,
  4. TreeViewController? controller,
  5. bool toggleNodeOnTap = true,
  6. bool shrinkWrap = false,
  7. bool removeTop = true,
  8. bool removeBottom = true,
  9. bool reverse = false,
  10. 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");