copyWith method
PeamanFeed
copyWith({
- String? id,
- String? ownerId,
- PeamanFeedType? type,
- String? caption,
- List<
PeamanFileUrl> ? files, - int? reactionsCount,
- int? commentsCount,
- int? repliesCount,
- int? savesCount,
- int? viewsCount,
- bool? featured,
- List<
String> ? searchKeys, - int? createdAt,
- int? updatedAt,
- bool? visibility,
- Map<
String, dynamic> ? extraData,
Implementation
PeamanFeed copyWith({
String? id,
final String? ownerId,
final PeamanFeedType? type,
final String? caption,
final List<PeamanFileUrl>? files,
final int? reactionsCount,
final int? commentsCount,
final int? repliesCount,
final int? savesCount,
final int? sharesCount,
final int? viewsCount,
final bool? featured,
final List<String>? searchKeys,
final int? createdAt,
final int? updatedAt,
final bool? visibility,
final Map<String, dynamic>? extraData,
}) {
return PeamanFeed(
id: id ?? this.id,
ownerId: ownerId ?? this.ownerId,
type: type ?? this.type,
caption: caption ?? this.caption,
files: files ?? this.files,
reactionsCount: reactionsCount ?? this.reactionsCount,
commentsCount: commentsCount ?? this.commentsCount,
repliesCount: commentsCount ?? this.repliesCount,
savesCount: savesCount ?? this.savesCount,
sharesCount: sharesCount ?? this.sharesCount,
viewsCount: viewsCount ?? this.viewsCount,
featured: featured ?? this.featured,
searchKeys: searchKeys ?? this.searchKeys,
createdAt: createdAt ?? this.createdAt,
updatedAt: updatedAt ?? this.updatedAt,
visibility: visibility ?? this.visibility,
extraData: extraData ?? this.extraData,
);
}