Skip to content

Simplify QueryFilter.filterArguments for callers#9069

Merged
srawlins merged 1 commit intoflutter:masterfrom
srawlins:improve-api-2
Mar 26, 2025
Merged

Simplify QueryFilter.filterArguments for callers#9069
srawlins merged 1 commit intoflutter:masterfrom
srawlins:improve-api-2

Conversation

@srawlins
Copy link
Copy Markdown
Contributor

This CL is a step towards making the "filter" code shareable, as per #7793.

(It's also just a cleanup independent of making code shareable.)

  • All callers of QueryFilter.filterArguments just use the set of QueryFilterArguments; they do not pay any attention to the mapping from filter kinds. So just simplify the API to only expose the set of QueryFilterArguments.
  • Do not expose a setter for FilterControllerMixin.filterTagNotifier.
  • Mark createQueryFilterArgs as visibleForOverriding.
  • Make QueryFilter generic, so that it's field, _filterArguments, and getter, filterArguments, are not collections of QueryFilterArgument<dynamic>.

@srawlins srawlins merged commit c8eedf7 into flutter:master Mar 26, 2025
41 of 42 checks passed
@srawlins srawlins deleted the improve-api-2 branch March 26, 2025 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants