getInputType function

TextInputType getInputType(
  1. Types type
)

Implementation

TextInputType getInputType(Types type) {
  switch (type) {
    case Types.multiline:
      return TextInputType.multiline;
      break;
    case Types.number:
      return TextInputType.number;
      break;
    case Types.phone:
      return TextInputType.phone;
      break;
    case Types.email:
      return TextInputType.emailAddress;
      break;
    case Types.url:
      return TextInputType.url;
      break;
    case Types.text:
    default:
      return TextInputType.text;
      break;
  }
}