copyWith method

CampaignDataItem copyWith({
  1. num? cpTotal,
  2. num? id,
  3. String? bannerName,
  4. String? banner,
  5. String? bannerFull,
  6. String? name,
  7. String? title,
  8. String? location,
  9. String? fromTimestamp,
  10. String? toTimestamp,
  11. String? fromDate,
  12. String? fromDateTime,
  13. String? toDate,
  14. String? toDateTime,
  15. String? isActive,
  16. String? isDeleted,
  17. num? createdAtToday,
  18. String? createdAt,
  19. String? createdTime,
  20. String? updatedAt,
  21. num? masterUserId,
  22. String? textColor,
  23. String? textPosition,
  24. String? campaignShareUrl,
})

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