strip method

String strip()

If exists, all ANSI sequences will be removed from this string.

Implementation

String strip() {
  // ignore: unnecessary_this
  return this.replaceAll(ansiPattern, '');
}