onClear property
(void Function()?)
onClear
final
Optional callback used to clear the TextField. If provided an IconButton will use it as the suffix icon inside the InputDecoration
Implementation
final void Function()? onClear;