mapperInputType function

String mapperInputType(
  1. InputType inputType
)

Implementation

String mapperInputType(InputType inputType) {
  switch (inputType) {
    case InputType.button:
      return 'button';
    case InputType.checkbox:
      return 'checkbox';
    case InputType.file:
      return 'file';
    case InputType.hidden:
      return 'hidden';
    case InputType.image:
      return 'image';
    case InputType.password:
      return 'password';
    case InputType.radio:
      return 'radio';
    case InputType.reset:
      return 'reset';
    case InputType.submit:
      return 'submit';
    case InputType.text:
      return 'text';
  }
}