toInputMode method
Implementation
InputMode toInputMode() {
switch (this) {
case 'Pipe':
return InputMode.pipe;
case 'File':
return InputMode.file;
}
throw Exception('$this is not known in enum InputMode');
}
InputMode toInputMode() {
switch (this) {
case 'Pipe':
return InputMode.pipe;
case 'File':
return InputMode.file;
}
throw Exception('$this is not known in enum InputMode');
}