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