filter abstract method

void filter(
  1. Pattern uri,
  2. RequestFilter filter, {
  3. bool preceding = false,
})

Maps the given URI to the given filter.

The interpretation of uri is really up to the implementation of Router.

  • uri - a pattern, either String or RegExp.
  • filter - if filter is null, it means removal.
  • preceding - whether to make the mapping preceding any previous mappings. In other words, if true, this mapping will be interpreted first.

Implementation

void filter(Pattern uri, RequestFilter filter, {bool preceding = false});