FieldModel constructor

FieldModel({
  1. String? labelText,
  2. String? hintText,
  3. String? errorMsg,
  4. bool? obscureText,
  5. int? errorMaxLines,
  6. IconData? suffixIcon,
  7. VoidCallback? onTapSuffixIcon,
  8. IconData? prefixIcon,
  9. VoidCallback? onTapPrefixIcon,
  10. ValueChanged<String>? onChanged,
  11. FormFieldValidator<String>? validator,
  12. FormFieldSetter<String>? onSaved,
  13. ValueChanged<String>? onSubmitted,
  14. VoidCallback? onFieldSubmitted,
  15. VoidCallback? onEditingComplete,
  16. FocusNode? focusNode,
  17. FocusNode? nextFocus,
  18. TextEditingController? controller,
  19. TextInputType? keyboardType,
  20. TextInputAction? textInputAction,
  21. int? maxLines,
  22. int? maxTexts,
  23. double? radius,
  24. bool? filled,
  25. Color? fillColor,
  26. bool? isUnderLine,
  27. InputBorder? border,
  28. 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,
});