copyWith method

DRMINFO copyWith({
  1. String? vendor,
  2. String? version,
  3. String? description,
  4. String? algorithms,
  5. String? systemId,
  6. String? securityLevel,
  7. String? hdcpLevel,
  8. String? maxHdcpLevel,
  9. String? usageRepostingSupport,
  10. String? maxNoOfSessions,
  11. String? noOfOpenSessions,
})

copyWith is the function to copy the class.

Implementation

DRMINFO copyWith({
  String? vendor,
  String? version,
  String? description,
  String? algorithms,
  String? systemId,
  String? securityLevel,
  String? hdcpLevel,
  String? maxHdcpLevel,
  String? usageRepostingSupport,
  String? maxNoOfSessions,
  String? noOfOpenSessions,
}) {
  return DRMINFO(
    vendor: vendor ?? this.vendor,
    version: version ?? this.version,
    description: description ?? this.description,
    algorithms: algorithms ?? this.algorithms,
    systemId: systemId ?? this.systemId,
    securityLevel: securityLevel ?? this.securityLevel,
    hdcpLevel: hdcpLevel ?? this.hdcpLevel,
    maxHdcpLevel: maxHdcpLevel ?? this.maxHdcpLevel,
    usageRepostingSupport:
        usageRepostingSupport ?? this.usageRepostingSupport,
    maxNoOfSessions: maxNoOfSessions ?? this.maxNoOfSessions,
    noOfOpenSessions: noOfOpenSessions ?? this.noOfOpenSessions,
  );
}