MenuFilterCallback typedef

MenuFilterCallback = List<MenuItem> Function(List<MenuItem> items, String query)

Callback for custom item filtering logic.

Receives the full items list and the current search query, and should return a new list containing only the items that match.

Implementation

typedef MenuFilterCallback =
    List<MenuItem> Function(List<MenuItem> items, String query);