EditTextWidget constructor

const EditTextWidget({
  1. Key? key,
  2. ITextInputType keyboardType = ITextInputType.text,
  3. int? minLines,
  4. int maxLines = 1,
  5. String? hintText,
  6. TextStyle? hintStyle,
  7. InputWidgetDelCallBack? fieldCallBack,
  8. Icon? deleteIcon,
  9. InputBorder? inputBorder,
  10. InputBorder? focusedBorder,
  11. EdgeInsets? contentPadding,
  12. TextStyle? textStyle,
  13. Widget? prefixIcon,
  14. FormFieldValidator<String>? validator,
  15. Color? fillColor,
  16. String inputText = '',
  17. TextAlign textAlign = TextAlign.start,
  18. bool enabled = true,
  19. int? inputMaxLength,
  20. ValueChanged<String>? onSubmitted,
  21. FocusNode? focusNode,
  22. TextInputAction? textInputAction,
  23. required Color cursorColor,
})

Implementation

const EditTextWidget({
  Key? key,
  ITextInputType keyboardType = ITextInputType.text,
  this.minLines,
  this.maxLines = 1,
  this.hintText,
  this.hintStyle,
  this.fieldCallBack,
  this.deleteIcon,
  this.inputBorder,
  this.focusedBorder,
  this.contentPadding,
  this.textStyle,
  this.prefixIcon,
  this.validator,
  this.fillColor,
  this.inputText = '',
  this.textAlign = TextAlign.start,
  this.enabled = true,
  this.inputMaxLength,
  this.onSubmitted,
  this.focusNode,
  this.textInputAction,
  required this.cursorColor,
})  : assert(maxLines > 0),
      keyboardType = maxLines == 1 ? keyboardType : ITextInputType.multiline,
      super(key: key);