TextFormField constructor

TextFormField({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? initialValue,
  4. String? validator(
    1. String?
    )?,
  5. void onSaved(
    1. String
    )?,
  6. String? placeholder,
  7. TextStyle? style,
  8. int? maxLength,
})

Creates a TextFormField with optional controller and validator.

Implementation

TextFormField({
  super.key,
  this.controller,
  String? initialValue,
  super.validator,
  super.onSaved,
  this.placeholder,
  this.style,
  this.maxLength,
}) : super(
        initialValue: initialValue ?? '',
        builder: _defaultBuilder,
      );