copyWith method

VideoOptions copyWith({
  1. Set<VideoPart>? parts,
  2. int? maxResults,
  3. String? onBehalfOfContentOwner,
  4. String? pageToken,
  5. String? regionCode,
  6. Chart? chart,
  7. List<String>? id,
  8. MyRating? myRating,
  9. String? hl,
  10. int? maxHeight,
  11. String? maxWidth,
})

Implementation

VideoOptions copyWith({
  Set<VideoPart>? parts,
  int? maxResults,
  String? onBehalfOfContentOwner,
  String? pageToken,
  String? regionCode,
  Chart? chart,
  List<String>? id,
  MyRating? myRating,
  String? hl,
  int? maxHeight,
  String? maxWidth,
}) =>
    VideoOptions(
      parts: parts ?? this.parts,
      maxResults: maxResults ?? this.maxResults,
      onBehalfOfContentOwner:
          onBehalfOfContentOwner ?? this.onBehalfOfContentOwner,
      pageToken: pageToken ?? this.pageToken,
      regionCode: regionCode ?? this.regionCode,
      chart: chart ?? this.chart,
      id: id ?? this.id,
      myRating: myRating ?? this.myRating,
      hl: hl ?? this.hl,
      maxHeight: maxHeight ?? this.maxHeight,
      maxWidth: maxWidth ?? this.maxWidth,
    );