guard static method

Future<bool> guard(
  1. String ptr,
  2. List<LicenseUsecase> usecases, {
  3. dynamic onPass,
  4. dynamic onFail,
})

Verifies if there is an active License for the usecases of the Title identified by ptr.

Optional onFail and onDenied callbacks can be defined.

Implementation

static Future<bool> guard(String ptr, List<LicenseUsecase> usecases,
    {onPass, onFail}) async {
  return instance.core.guard(ptr, usecases, onFail: onFail, onPass: onPass);
}