TextField constructor

const TextField({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? placeholder,
  4. TextStyle? style,
  5. int? maxLength,
  6. dynamic onChanged(
    1. String
    )?,
  7. dynamic onSubmitted(
    1. String
    )?,
})

Creates a TextField with optional controller, placeholder, and callbacks.

Implementation

const TextField({
  super.key,
  this.controller,
  this.placeholder,
  this.style,
  this.maxLength,
  this.onChanged,
  this.onSubmitted,
});