A filter function that returns a subset of tokens.
tokens
typedef TokenFilter = Future<List<Token>> Function(List<Token> tokens);