copyWith method

SearchOptions copyWith({
  1. Set<SearchPart>? part,
  2. int? maxResults,
  3. String? onBehalfOfContentOwner,
  4. String? pageToken,
  5. String? regionCode,
  6. bool? forContentOwner,
  7. bool? forDeveloper,
  8. bool? forMine,
  9. String? channelId,
  10. ChannelType? channelType,
  11. EventType? eventType,
  12. String? location,
  13. String? locationRadius,
  14. Order? order,
  15. DateTime? publishedAfter,
  16. DateTime? publishedBefore,
  17. String? query,
  18. String? relevanceLanguage,
  19. SafeSearch? safeSearch,
  20. Topic? topic,
  21. List<ResultType>? type,
  22. VideoCaption? videoCaption,
  23. Category? category,
  24. VideoDefinition? videoDefinition,
  25. VideoDimension? videoDimension,
  26. VideoDuration? videoDuration,
  27. VideoEmbeddable? videoEmbeddable,
  28. VideoLicense? videoLicense,
  29. VideoSyndicated? videoSyndicated,
  30. VideoType? videoType,
})

Implementation

SearchOptions copyWith({
  Set<SearchPart>? part,
  int? maxResults,
  String? onBehalfOfContentOwner,
  String? pageToken,
  String? regionCode,
  bool? forContentOwner,
  bool? forDeveloper,
  bool? forMine,
  String? channelId,
  ChannelType? channelType,
  EventType? eventType,
  String? location,
  String? locationRadius,
  Order? order,
  DateTime? publishedAfter,
  DateTime? publishedBefore,
  String? query,
  String? relevanceLanguage,
  SafeSearch? safeSearch,
  Topic? topic,
  List<ResultType>? type,
  VideoCaption? videoCaption,
  Category? category,
  VideoDefinition? videoDefinition,
  VideoDimension? videoDimension,
  VideoDuration? videoDuration,
  VideoEmbeddable? videoEmbeddable,
  VideoLicense? videoLicense,
  VideoSyndicated? videoSyndicated,
  VideoType? videoType,
}) =>
    SearchOptions(
      parts: part ?? this.parts,
      maxResults: maxResults ?? this.maxResults,
      onBehalfOfContentOwner:
          onBehalfOfContentOwner ?? this.onBehalfOfContentOwner,
      pageToken: pageToken ?? this.pageToken,
      regionCode: regionCode ?? this.regionCode,
      forContentOwner: forContentOwner ?? this.forContentOwner,
      forDeveloper: forDeveloper ?? this.forDeveloper,
      forMine: forMine ?? this.forMine,
      channelId: channelId ?? this.channelId,
      channelType: channelType ?? this.channelType,
      eventType: eventType ?? this.eventType,
      location: location ?? this.location,
      locationRadius: locationRadius ?? this.locationRadius,
      order: order ?? this.order,
      publishedAfter: publishedAfter ?? this.publishedAfter,
      publishedBefore: publishedBefore ?? this.publishedBefore,
      query: query ?? this.query,
      relevanceLanguage: relevanceLanguage ?? this.relevanceLanguage,
      safeSearch: safeSearch ?? this.safeSearch,
      topic: topic ?? this.topic,
      type: type ?? this.type,
      videoCaption: videoCaption ?? this.videoCaption,
      category: category ?? this.category,
      videoDefinition: videoDefinition ?? this.videoDefinition,
      videoDimension: videoDimension ?? this.videoDimension,
      videoDuration: videoDuration ?? this.videoDuration,
      videoEmbeddable: videoEmbeddable ?? this.videoEmbeddable,
      videoLicense: videoLicense ?? this.videoLicense,
      videoSyndicated: videoSyndicated ?? this.videoSyndicated,
      videoType: videoType ?? this.videoType,
    );