valuesForTemplate method
Implementation
String valuesForTemplate() {
return values.map((e) {
final value = e.between('(', ')');
if (value != null) {
return ' $value: $enumName.${valueName(e)},';
} else {
return " '$e': $enumName.${valueName(e)},";
}
}).join('\n');
}