Whitelist tags(tags, { Filter when })

Creates a new Whitelist with additional allowed tags.

The tags can be one of the following types:

  • String containing a tag name;
  • Iterable<String> containing tag names;
  • Matcher.

If when is provided, the tag will only be allowed if when applies. Only if tags matches will when be invoked.

Source

Whitelist tags(dynamic tags, {Filter when});