stripColor function

String stripColor(
  1. String str
)

Implementation

String stripColor(String str) {
  return str.replaceAll(RegExp(r'\x1B\[\d+m'), '');
}