WFTextField constructor Null safety

const WFTextField(
  1. {Key? key,
  2. TextEditingController? controller,
  3. String? labelText,
  4. String? hintText,
  5. String? prefixText,
  6. String? suffixText,
  7. int? minLines,
  8. int? maxLines,
  9. int? maxLength,
  10. TextAlign textAlign = TextAlign.start,
  11. TextInputType? inputType,
  12. List<TextInputFormatter>? inputFormatters,
  13. bool readOnly = false,
  14. bool enabled = true,
  15. bool border = true,
  16. dynamic onTap(
      )?,
    1. dynamic onChanged(
      1. String value
      )?,
    2. dynamic onSaved(
      1. String? value
      )?,
    3. bool capitalize = false}
    )

    Implementation

    const WFTextField(
        {Key? key,
        this.controller,
        this.labelText,
        this.hintText,
        this.prefixText,
        this.suffixText,
        this.minLines,
        this.maxLines,
        this.maxLength,
        this.textAlign = TextAlign.start,
        this.inputType,
        this.inputFormatters,
        this.readOnly = false,
        this.enabled = true,
        this.border = true,
        this.onTap,
        this.onChanged,
        this.onSaved,
        this.capitalize = false})
        : super(key: key);