copyWith method

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

Implementation

CampaignArray copyWith({  num? cpTotal,
  num? id,
  String? projectId,
  String? bannerName,
  String? banner,
  String? bannerFull,
  String? name,
  String? description,
  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,
}) => CampaignArray(  cpTotal: cpTotal ?? _cpTotal,
  id: id ?? _id,
  projectId: projectId ?? _projectId,
  bannerName: bannerName ?? _bannerName,
  banner: banner ?? _banner,
  bannerFull: bannerFull ?? _bannerFull,
  name: name ?? _name,
  description: description ?? _description,
  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,
);