copyWith method
CampaignDataItem
copyWith({
- num? cpTotal,
- num? id,
- String? bannerName,
- String? banner,
- String? bannerFull,
- String? name,
- String? title,
- String? location,
- String? fromTimestamp,
- String? toTimestamp,
- String? fromDate,
- String? fromDateTime,
- String? toDate,
- String? toDateTime,
- String? isActive,
- String? isDeleted,
- num? createdAtToday,
- String? createdAt,
- String? createdTime,
- String? updatedAt,
- num? masterUserId,
- String? textColor,
- String? textPosition,
Implementation
CampaignDataItem copyWith({ num? cpTotal,
num? id,
String? bannerName,
String? banner,
String? bannerFull,
String? name,
String? title,
String? location,
String? fromTimestamp,
String? toTimestamp,
String? fromDate,
String? fromDateTime,
String? toDate,
String? toDateTime,
String? isActive,
String? isDeleted,
num? createdAtToday,
String? createdAt,
String? createdTime,
String? updatedAt,
num? masterUserId,
String? textColor,
String? textPosition,
String? campaignShareUrl,
}) => CampaignDataItem( cpTotal: cpTotal ?? _cpTotal,
id: id ?? _id,
bannerName: bannerName ?? _bannerName,
banner: banner ?? _banner,
bannerFull: bannerFull ?? _bannerFull,
name: name ?? _name,
title: title ?? _title,
location: location ?? _location,
fromTimestamp: fromTimestamp ?? _fromTimestamp,
toTimestamp: toTimestamp ?? _toTimestamp,
fromDate: fromDate ?? _fromDate,
fromDateTime: fromDateTime ?? _fromDateTime,
toDate: toDate ?? _toDate,
toDateTime: toDateTime ?? _toDateTime,
isActive: isActive ?? _isActive,
isDeleted: isDeleted ?? _isDeleted,
createdAtToday: createdAtToday ?? _createdAtToday,
createdAt: createdAt ?? _createdAt,
createdTime: createdTime ?? _createdTime,
updatedAt: updatedAt ?? _updatedAt,
masterUserId: masterUserId ?? _masterUserId,
textColor: textColor ?? _textColor,
textPosition: textPosition ?? _textPosition,
campaignShareUrl: campaignShareUrl ?? _campaignShareUrl,
);