copyWith method

StatusFunnels copyWith({
  1. String? id,
  2. String? creatorId,
  3. String? name,
  4. int? dealsCount,
  5. int? dealsAmount,
  6. DateTime? createdAt,
  7. DateTime? updatedAt,
})

Implementation

StatusFunnels copyWith({
  String? id,
  String? creatorId,
  String? name,
  int? dealsCount,
  int? dealsAmount,
  DateTime? createdAt,
  DateTime? updatedAt,
}) {
  return StatusFunnels(
    id: id ?? this.id,
    creatorId: creatorId ?? this.creatorId,
    name: name ?? this.name,
    dealsCount: dealsCount ?? this.dealsCount,
    dealsAmount: dealsAmount ?? this.dealsAmount,
    createdAt: createdAt ?? this.createdAt,
    updatedAt: updatedAt ?? this.updatedAt,
  );
}