copyWith method
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,
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,
);