toString method
Returns the enum value as a string.
Implementation
@override
String toString() {
switch (this) {
case DeviceMetricColorEnum.black:
return 'black';
case DeviceMetricColorEnum.red:
return 'red';
case DeviceMetricColorEnum.green:
return 'green';
case DeviceMetricColorEnum.yellow:
return 'yellow';
case DeviceMetricColorEnum.blue:
return 'blue';
case DeviceMetricColorEnum.magenta:
return 'magenta';
case DeviceMetricColorEnum.cyan:
return 'cyan';
case DeviceMetricColorEnum.white:
return 'white';
}
}