EditText constructor

const EditText({
  1. Key? key,
  2. TextEditingController? controller,
  3. bool? readOnly,
  4. EdgeInsets? padding,
  5. EdgeInsets? margin,
  6. double? radius,
  7. Color? borderColor,
  8. Color? filledColor,
  9. bool isFilled = false,
  10. bool isOptional = false,
  11. String? hint,
  12. TextStyle? hintStyle,
  13. TextStyle? textStyle,
  14. String? label,
  15. TextStyle? labelStyle,
  16. TextInputType? inputType,
  17. int noOfLines = 1,
  18. String? suffixText,
  19. TextStyle? suffixTextStyle,
  20. Widget? prefixIcon,
  21. TextAlign? textAlign,
  22. int? maxLength,
  23. dynamic onChange(
    1. String
    )?,
  24. FocusNode? node,
  25. Widget? suffixIcon,
  26. Widget? suffix,
  27. List<TextInputFormatter>? inputFormat,
  28. bool obscureText = false,
  29. String? error,
  30. dynamic onTap()?,
  31. BoxConstraints? prefixIconConstraints,
  32. String? validator(
    1. String?
    )?,
  33. InputDecoration? decoration,
  34. AutovalidateMode? autovalidateMode,
})

Implementation

const EditText({
  super.key,
  this.controller,
  this.readOnly,
  this.padding,
  this.margin,
  this.radius,
  this.borderColor,
  this.filledColor,
  this.isFilled = false,
  this.isOptional = false,
  this.hint,
  this.hintStyle,
  this.textStyle,
  this.label,
  this.labelStyle,
  this.inputType,
  this.noOfLines = 1,
  this.suffixText,
  this.suffixTextStyle,
  this.prefixIcon,
  this.textAlign,
  this.maxLength,
  this.onChange,
  this.node,
  this.suffixIcon,
  this.suffix,
  this.inputFormat,
  this.obscureText = false,
  this.error,
  this.onTap,
  this.prefixIconConstraints,
  this.validator,
  this.decoration,
  this.autovalidateMode,
});