EditTextWidget constructor

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. TextStyle? textStyle,
  11. Widget? prefixIcon,
  12. FormFieldValidator<String>? validator,
  13. Color? fillColor,
  14. String inputText = '',
  15. TextAlign textAlign = TextAlign.start,
  16. bool enabled = true,
  17. int? inputMaxLength,
  18. ValueChanged<String>? onSubmitted,
  19. FocusNode? focusNode,
  20. required Color cursorColor,
})

Implementation

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