onTextChanged method

void onTextChanged(
  1. String filter
)

Implementation

void onTextChanged(String filter) {
  if(filter.isEmpty && _lastFilter.isNotEmpty){
    _lastFilter = filter;
    _filter$.add(filter.toLowerCase());
  }
  if(filter.isEmpty||filter==_lastFilter){
    return;
  }
  _lastFilter = filter;
  _filter$.add(filter.toLowerCase());
}