toMode method
Implementation
Mode toMode() {
switch (this) {
case 'OFF':
return Mode.off;
case 'BEHIND_LIVE_EDGE':
return Mode.behindLiveEdge;
}
throw Exception('$this is not known in enum Mode');
}
Mode toMode() {
switch (this) {
case 'OFF':
return Mode.off;
case 'BEHIND_LIVE_EDGE':
return Mode.behindLiveEdge;
}
throw Exception('$this is not known in enum Mode');
}