getlistselected method

List<String> getlistselected()

Implementation

List<String> getlistselected() {
  final List<String> checked = [];
  final List<CheckboxData> xt =
      checkboxdata.where((element) => element.selected).toList();
  for (var element in xt) {
    checked.add(element.text);
  }
  return checked;
}