whereMethod method

Iterable<K> whereMethod({
  1. bool fun(
    1. K
    )?,
})

Implementation

Iterable<K> whereMethod({bool Function(K)? fun}) {
  if (this != null && fun != null) {
    return this!.where(fun);
  } else if (this == null) {
    return [];
  } else {
    return this!.toList();
  }
}