alphabetic property
String
alphabetic
Gets the alphabetic code for this currency.
Implementation
String get alphabetic {
final String description = describeEnum(this);
final RegExp regExp = RegExp('([A-Za-z])+');
final Iterable<Match> matches = regExp.allMatches(description);
final onlyLettersBuffer = StringBuffer();
for (final Match match in matches) onlyLettersBuffer.write(match.group(0));
return '$onlyLettersBuffer'.toUpperCase();
}