removeWhere method

String removeWhere(
  1. bool test(
    1. String element
    )
)

removeWhere: removes all characters that satisfy the test

Implementation

String removeWhere(bool Function(String element) test) => this?.replaceAllMapped(RegExp(r''), (Match match) => "") ?? "";