copyWith method
SearchResult
copyWith({
- Content? content,
- User? user,
- Space? space,
- String? title,
- String? excerpt,
- String? url,
- ContainerSummary? resultParentContainer,
- ContainerSummary? resultGlobalContainer,
- List<
Breadcrumb> ? breadcrumbs, - String? entityType,
- String? iconCssClass,
- DateTime? lastModified,
- String? friendlyLastModified,
- num? score,
Implementation
SearchResult copyWith(
{Content? content,
User? user,
Space? space,
String? title,
String? excerpt,
String? url,
ContainerSummary? resultParentContainer,
ContainerSummary? resultGlobalContainer,
List<Breadcrumb>? breadcrumbs,
String? entityType,
String? iconCssClass,
DateTime? lastModified,
String? friendlyLastModified,
num? score}) {
return SearchResult(
content: content ?? this.content,
user: user ?? this.user,
space: space ?? this.space,
title: title ?? this.title,
excerpt: excerpt ?? this.excerpt,
url: url ?? this.url,
resultParentContainer:
resultParentContainer ?? this.resultParentContainer,
resultGlobalContainer:
resultGlobalContainer ?? this.resultGlobalContainer,
breadcrumbs: breadcrumbs ?? this.breadcrumbs,
entityType: entityType ?? this.entityType,
iconCssClass: iconCssClass ?? this.iconCssClass,
lastModified: lastModified ?? this.lastModified,
friendlyLastModified: friendlyLastModified ?? this.friendlyLastModified,
score: score ?? this.score,
);
}