DevToolsClearableTextField constructor

DevToolsClearableTextField({
  1. Key? key,
  2. required String labelText,
  3. TextEditingController? controller,
  4. String? hintText,
  5. Widget? prefixIcon,
  6. List<Widget> additionalSuffixActions = const <Widget>[],
  7. void onChanged(
    1. String
    )?,
  8. void onSubmitted(
    1. String
    )?,
  9. bool autofocus = false,
  10. bool? enabled,
  11. bool roundedBorder = false,
})

Implementation

DevToolsClearableTextField({
  super.key,
  required this.labelText,
  TextEditingController? controller,
  this.hintText,
  this.prefixIcon,
  this.additionalSuffixActions = const <Widget>[],
  this.onChanged,
  this.onSubmitted,
  this.autofocus = false,
  this.enabled,
  this.roundedBorder = false,
}) : controller = controller ?? TextEditingController();