stringToTextInputType property
TextInputType
stringToTextInputType
Implementation
TextInputType get stringToTextInputType {
switch (this) {
case "Texto":
return TextInputType.text;
case "Multi linhas":
return TextInputType.multiline;
case "Número":
return TextInputType.number;
case "Telefone":
return TextInputType.phone;
case "Data":
return TextInputType.datetime;
case "Email":
return TextInputType.emailAddress;
case "Url":
return TextInputType.url;
case "Senha":
return TextInputType.visiblePassword;
case "Nome":
return TextInputType.name;
case "Endereço":
return TextInputType.streetAddress;
default:
return TextInputType.text;
}
}