latest method

LicenseRecord? latest(
  1. TitleRecord title
)

Returns the latest LicenseRecord for a title or null if the title or license records are not found.

The LicenseRecord returned may be expired or not applicable to a specific LicenseUse. To check license validity, use the guard method.

Implementation

LicenseRecord? latest(TitleRecord title) {
  LicenseModel? license =
      _licenseService.getLatest(Bytes.base64UrlDecode(title.id));
  if (license == null) return null;
  return license.toRecord(title);
}