createInputElement function
Implementation
InputElementBase createInputElement([String? type]) {
type = type?.toLowerCase();
switch (type) {
case 'search':
return SearchInputElement();
case 'text':
return TextInputElement();
case 'url':
return UrlInputElement();
case 'tel':
return TelephoneInputElement();
case 'email':
return EmailInputElement();
case 'password':
return PasswordInputElement();
case 'date':
return DateInputElement();
case 'month':
return MonthInputElement();
case 'week':
return WeekInputElement();
case 'time':
return TimeInputElement();
case 'datetime-local':
return LocalDateTimeInputElement();
case 'number':
return NumberInputElement();
case 'range':
return RangeInputElement();
case 'checkbox':
return CheckboxInputElement();
case 'radio':
return RadioButtonInputElement();
case 'file':
return FileUploadInputElement();
case 'submit':
return SubmitButtonInputElement();
case 'reset':
return ResetButtonInputElement();
case 'image':
return ImageButtonInputElement();
default:
return InputElement();
}
}