removeWhere method

string removeWhere(
  1. bool predicate(
    1. String
    )
)

Removes from string chacacters that not match the predicate

Implementation

string removeWhere(bool Function(String) predicate) => toArray.where((x) => !predicate(x)).join();