filter method

void filter(
  1. bool test(
    1. E
    )
)

Filter items that match condition.

Implementation

void filter(bool Function(E) test) {
  emit(val.where(test).toList());
}