entitled method

Future<bool> entitled(
  1. Entitlement entitlement
)

Implementation

Future<bool> entitled(Entitlement entitlement) async {
  if (!_synced) {
    try {
      await refresh();
    } on Exception catch (error) {
      // Offline: what the device held last still holds until its notAfter.
      _log.log('Entitlements could not be refreshed: $error',
          level: DVLogLevel.info);
    }
  }
  return holds(entitlement);
}