toInputDeviceConnectionState method
Implementation
InputDeviceConnectionState toInputDeviceConnectionState() {
switch (this) {
case 'DISCONNECTED':
return InputDeviceConnectionState.disconnected;
case 'CONNECTED':
return InputDeviceConnectionState.connected;
}
throw Exception('$this is not known in enum InputDeviceConnectionState');
}