PredicateAuthorizer constructor

const PredicateAuthorizer(
  1. Future<bool> _predicate(
    1. Principal? principal,
    2. RouteContext context
    )
)

Creates an authorizer from predicate.

Implementation

const PredicateAuthorizer(this._predicate);