onSelected method

Future<void> onSelected({
  1. required int index,
  2. required bool value,
})

Implementation

Future<void> onSelected({required int index, required bool value}) async {
  checkboxdata[index].selected = value;
  notifyListeners();
}