latest static method

LicenseRecord? latest(
  1. String ptr, {
  2. String? origin = null,
})

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

  • Parameters:

    • ptr: The Pointer Records identifies data stored in your system, similar to a foreign key.
    • origin: An optional origin. If null, the origin defaults to the package name.
  • Returns: The latest LicenseRecord for the given ptr, or null if the corresponding title or license records are not found.

Implementation

static LicenseRecord? latest(String ptr, {String? origin = null}) {
  _throwIfNotInitialized();
  return instance._core!.latest(ptr, origin: origin);
}