where method

Iterable<String> where(
  1. bool f(
    1. String
    )
)

Implementation

Iterable<String> where(bool Function(String) f) {
  final filtered = runes.where((e) => f(String.fromCharCode(e))).toList();
  return Iterable<String>.generate(filtered.length, (index) {
    return String.fromCharCode(filtered[index]);
  });
}