FieldModel constructor
FieldModel({
- String? labelText,
- String? hintText,
- String? errorMsg,
- bool? obscureText,
- int? errorMaxLines,
- IconData? suffixIcon,
- VoidCallback? onTapSuffixIcon,
- IconData? prefixIcon,
- VoidCallback? onTapPrefixIcon,
- ValueChanged<
String> ? onChanged, - FormFieldValidator<
String> ? validator, - FormFieldSetter<
String> ? onSaved, - ValueChanged<
String> ? onSubmitted, - VoidCallback? onFieldSubmitted,
- VoidCallback? onEditingComplete,
- FocusNode? focusNode,
- FocusNode? nextFocus,
- TextEditingController? controller,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- int? maxLines,
- int? maxTexts,
- double? radius,
- bool? filled,
- Color? fillColor,
- bool? isUnderLine,
- InputBorder? border,
- Color? bgColor,
Implementation
FieldModel({
this.labelText,
this.hintText,
this.errorMsg,
this.obscureText,
this.errorMaxLines,
this.suffixIcon,
this.onTapSuffixIcon,
this.prefixIcon,
this.onTapPrefixIcon,
this.onChanged,
this.validator,
this.onSaved,
this.onSubmitted,
this.onFieldSubmitted,
this.onEditingComplete,
this.focusNode,
this.nextFocus,
this.controller,
this.keyboardType,
this.textInputAction,
this.maxLines,
this.maxTexts,
this.radius,
this.filled,
this.fillColor,
this.isUnderLine,
this.border,
this.bgColor,
});