clear method

void clear()

Clears the filter. Does nothing if the query is already empty.

Implementation

void clear() {
  if (value.query.isEmpty) return;
  filter('');
}