formatAsKey method
Implementation
String formatAsKey() {
return this.replaceAllMapped(
RegExp('([0-9a-fA-F]{8})-([0-9a-fA-F]{4})-([0-9a-fA-F]{4})-([0-9a-fA-F]{4})-([0-9a-fA-F]{12})'),
(match) =>
match.group(1)!.toLowerCase() +
match.group(2)!.toLowerCase() +
match.group(3)!.toLowerCase() +
match.group(4)!.toLowerCase() +
match.group(5)!.toLowerCase());
}