getContext method

DrmContext getContext()

Implementation

DrmContext getContext() {
  DrmContext? drmContext;
  LicenseStatus? licenseStatus;
  context.fold((dc) => drmContext = dc, (ls) => licenseStatus = ls);
  if (drmContext != null) {
    return drmContext!;
  }
  throw licenseStatus!;
}