TreeView constructor

const TreeView({
  1. required List<TreeData> data,
  2. IconButton? leadingIcon,
  3. IconButton? childIcon,
  4. double offsetLeft = 24.0,
  5. Function? titleOnTap,
  6. Function? leadingOnTap,
  7. Function? trailingOnTap,
  8. double scrollOffset = 0.0,
  9. ScrollListener? scrollListener,
})

Implementation

const TreeView({
  required this.data,
  this.leadingIcon,
  this.childIcon,
  this.offsetLeft = 24.0,
  this.titleOnTap,
  this.leadingOnTap,
  this.trailingOnTap,
  this.scrollOffset = 0.0,
  this.scrollListener
}) : assert(data != null);