slice static method

String slice(
  1. String s
)

Implementation

static String slice(String s) {
  return int.parse(s[0], radix: 16) >= 8 ? '00$s' : s;
}