remove method Null safety

String remove(
  1. RegExp regExp
)

Implementation

String remove(RegExp regExp) {
  return replaceAll(regExp, '');
}