guard static method
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);
}