strip static method

String strip(
  1. String text
)

Strip ANSI codes from text

Implementation

static String strip(String text) {
  return text.replaceAll(RegExp(r'\x1b\[[0-9;]*m'), '');
}