clearable property

bool Function(TextEditingValue value) clearable
final

A predicate that returns true if a clear icon should be shown at the end when the text field is not empty.

It is never shown when the text field is disabled.

Defaults to always returning false.

Implementation

final bool Function(TextEditingValue value) clearable;