The current search filter is as follows: static String search = '${apiEndpoint}search/repositories?q=created:>${getDateXDaysAgo(30)}&sort=stars&order=desc';
Instead, it should be more generic where a filter model should be created with the filter parameters needed. In that case it should look something like: static String search = '${apiEndpoint}search/repositories?q=${filter(FilterInputModel)}';
where function filter takes a FilterModel and returns a string.