license static method

Future<LicenseRecord> license(
  1. Offer offer,
  2. bool accepted
)

Creates a new License, based on the the user choice about the offer.

If the user accepted the offer, the License will include the Offer.uses. If not the License will have no uses. Creates a new Title record or retrieves an existing one before creating the License.

Implementation

static Future<LicenseRecord> license(Offer offer, bool accepted) async {
  return await instance.core.license(offer.ptr, offer.uses, offer.terms);
}