toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case InputDeviceConnectionState.disconnected:
      return 'DISCONNECTED';
    case InputDeviceConnectionState.connected:
      return 'CONNECTED';
  }
}