filter abstract method

DisposableFuture<bool> filter(
  1. Object filterQuery, {
  2. int? limit,
})

Takes in a query and a limit and applies the query to the entire list of options.

The query is an object to support the caller passing in a non-string query. If the limit is less than 1, it is assumed to be mean no limit.

Examples: filter('re', limit: 5) for return colors whose names start with 're' filter(new DateTime.now(), limit: 10) for showing only meeting that are in the future.

Implementation

DisposableFuture<bool> filter(Object filterQuery, {int? limit});