toMode method
Implementation
Mode toMode() {
switch (this) {
case 'standard':
return Mode.standard;
case 'high-performance':
return Mode.highPerformance;
}
throw Exception('$this is not known in enum Mode');
}
Mode toMode() {
switch (this) {
case 'standard':
return Mode.standard;
case 'high-performance':
return Mode.highPerformance;
}
throw Exception('$this is not known in enum Mode');
}