toInputState method

InputState toInputState()

Implementation

InputState toInputState() {
  switch (this) {
    case 'CREATING':
      return InputState.creating;
    case 'DETACHED':
      return InputState.detached;
    case 'ATTACHED':
      return InputState.attached;
    case 'DELETING':
      return InputState.deleting;
    case 'DELETED':
      return InputState.deleted;
  }
  throw Exception('$this is not known in enum InputState');
}