ClearButton constructor

const ClearButton(
  1. TextEditingController _controller, {
  2. Widget icon = defaultIcon,
  3. Key? key,
})

Constructor for the ClearButton class.

  • TextEditingController is the text editing controller to listen to.
  • icon is the icon to display in the button.
  • key is the optional key to use for the widget.

Implementation

const ClearButton(this._controller, {this.icon = defaultIcon, super.key});