hexStripPrefix function
Implementation
String hexStripPrefix(String value) {
if (value.isEmpty) {
return '';
}
if (hexHasPrefix(value)) {
return value.substring(2);
}
final reg = RegExp(r'^[a-fA-F\d]+$');
if (reg.hasMatch(value)) {
return value;
}
throw UnreachableError();
}