ModernFormTextField constructor

const ModernFormTextField({
  1. Key? key,
  2. required String? label,
  3. String? labelTextHelper,
  4. String? text,
  5. Widget? suffix,
  6. bool enabled = true,
  7. FocusNode? focus,
  8. FocusNode? nextFocus,
  9. TextInputAction? textInputAction,
  10. TextEditingController? controller,
  11. void onChanged(
    1. String text
    )?,
  12. TextInputType? keyboardType,
  13. void onTap()?,
  14. MoneyMaskedTextController? moneyController,
  15. void onChangedMoney(
    1. double value
    )?,
  16. String? hint,
  17. TextStyle labelStyle(
    1. TextStyle
    )?,
  18. TextStyle hintStyle(
    1. TextStyle
    )?,
  19. TextStyle textStyle(
    1. TextStyle
    )?,
  20. Icon? prefixIcon,
  21. TextCapitalization? textCapitalization,
  22. String? validator(
    1. dynamic
    )?,
  23. InputDecoration decoration(
    1. InputDecoration
    )?,
  24. TextStyle errorStyle(
    1. TextStyle
    )?,
  25. void onFieldSubmitted()?,
  26. bool? autofocus,
  27. String? helperText,
  28. TextStyle? helperStyle,
})

Implementation

const ModernFormTextField({
  Key? key,
  required this.label,
  this.labelTextHelper,
  this.text,
  this.suffix,
  this.enabled = true,
  this.focus,
  this.nextFocus,
  this.textInputAction,
  this.controller,
  this.onChanged,
  this.keyboardType,
  this.onTap,
  this.moneyController,
  this.onChangedMoney,
  this.hint,
  this.labelStyle,
  this.hintStyle,
  this.textStyle,
  this.prefixIcon,
  this.textCapitalization,
  this.validator,
  this.decoration,
  this.errorStyle,
  this.onFieldSubmitted,
  this.autofocus,
  this.helperText,
  this.helperStyle,
}) : super(key: key);