operator - method

String operator -(
  1. String? s
)

Removes a text from the String.

Implementation

String operator -(String? s) {
  if (this.isBlank) {
    return '';
  }
  if (s.isBlank) {
    return this!;
  }
  return this!.replaceAll(s!, '');
}