handleFilterChanged method

void handleFilterChanged(
  1. FilterModel filter
)

Handles the filter changed event.

This method calls the onFilterChanged callback with the provided filter and then calls handleUpdateUI.

Implementation

void handleFilterChanged(FilterModel filter) {
  onFilterChanged?.call(filter);
  handleUpdateUI();
}