remove method

String? remove(
  1. String remove
)

Implementation

String? remove(String remove) {
  if (this == null) return null;
  if (this!.isEmpty) return this;
  return this!.replaceAll(remove, '');
}