TreeModel constructor

TreeModel({
  1. required String id,
  2. required String name,
  3. String namePath = "",
  4. bool isRoot = false,
  5. bool isChoose = false,
  6. bool isExpanded = false,
  7. bool isDisabled = false,
  8. bool isShow = true,
  9. TreeModel? parent,
  10. List<TreeModel>? children,
})

Implementation

TreeModel({
  required this.id,
  required this.name,
  this.namePath = "",
  this.isRoot = false,
  this.isChoose = false,
  this.isExpanded = false,
  this.isDisabled = false,
  this.isShow = true,
  this.parent,
  List<TreeModel>? children,
}) : children = children ?? [];