Entertainment constructor

Entertainment({
  1. required ResourceType type,
  2. required String id,
  3. String idV1 = "",
  4. required Relative owner,
  5. required bool isRenderer,
  6. required bool isProxy,
  7. required bool isEqualizer,
  8. required int maxStreams,
  9. required EntertainmentSegmentCapabilities segmentCapabilities,
})

Creates a Entertainment object.

Implementation

Entertainment({
  required super.type,
  required super.id,
  this.idV1 = "",
  required this.owner,
  required this.isRenderer,
  required this.isProxy,
  required this.isEqualizer,
  required this.maxStreams,
  required this.segmentCapabilities,
})  : assert(idV1.isEmpty || Validators.isValidIdV1(idV1),
          '"$idV1" is not a valid `idV1`'),
      assert(maxStreams >= 1, "`maxStreams` must be at least 1");