GroupListView constructor Null safety

GroupListView(
  1. {Widget? child,
  2. bool isReorderEnable = true,
  3. bool isDeleteEnable = true,
  4. bool isUpdateEnable = true,
  5. bool isSelectEnable = false,
  6. List<CowGroup> disabledGroups = const [],
  7. required List<CowGroup> groups,
  8. dynamic onReorder(
    1. int oldIndex,
    2. int newIndex
    )?,
  9. dynamic onSelect(
    1. CowGroup? group
    )?}
)

Implementation

GroupListView({
  this.child,
  this.isReorderEnable = true,
  this.isDeleteEnable = true,
  this.isUpdateEnable = true,
  this.isSelectEnable = false,
  this.disabledGroups = const [],
  required this.groups,
  this.onReorder,
  this.onSelect,
});