toInputPreference method

InputPreference toInputPreference()

Implementation

InputPreference toInputPreference() {
  switch (this) {
    case 'EQUAL_INPUT_PREFERENCE':
      return InputPreference.equalInputPreference;
    case 'PRIMARY_INPUT_PREFERRED':
      return InputPreference.primaryInputPreferred;
  }
  throw Exception('$this is not known in enum InputPreference');
}