removeWere method

Future<void> removeWere(
  1. bool filter(
    1. T
    )
)

Implementation

Future<void> removeWere(bool Function(T) filter) async {
  var _list = dataList;

  while (true) {
    int index = _list.indexWhere(filter);
    if (index != -1) {
      removeItem(_list[index], index);
    } else {
      break;
    }
  }
}