ExpandableReorderableListItemModel constructor

ExpandableReorderableListItemModel({
  1. CollapseCallback? collapseCallback,
  2. bool isCollapsed = false,
})

Model of an ExpandableReorderableListItem.

It contains

  • The index of the item in the list (not the tree).
  • Whether or not the item is collapsed.

Implementation

ExpandableReorderableListItemModel({
  this.collapseCallback,
  bool isCollapsed = false,
}) : _isCollapsed = isCollapsed;