getSelected method

List<T> getSelected()

Implementation

List<T> getSelected() {
  final ret = <T>[];
  for (var i = 0; i < objectList.length; i++) {
    final row = rows[i];
    final obj = objectList[i];
    final checkBox = row.children[0].nodeRoot.children[0];
    if (checkBox is CheckboxInputElement) {
      if (checkBox.checked ?? false) {
        ret.add(obj);
      }
    }
  }
  return ret;
}