name method
Gets the name of the value.
Implementation
String name() {
switch (_value) {
case 2:
return 'CANCEL';
case 1:
return 'CLOSE';
case 0:
return 'DONE';
}
return _value.toString();
}
Gets the name of the value.
String name() {
switch (_value) {
case 2:
return 'CANCEL';
case 1:
return 'CLOSE';
case 0:
return 'DONE';
}
return _value.toString();
}