BloomRouter constructor

BloomRouter(
  1. List<BloomRoute> routes, {
  2. BloomRoute? notFound,
  3. bool trailing = false,
})

Creates a BloomRouter with the given routes hierarchy and options.

Implementation

BloomRouter(this.routes, {this.notFound, this.trailing = false}) {
  if (!_activeRouters.contains(this)) {
    _activeRouters.add(this);
  }
}