copyWith method

Funnels copyWith({
  1. String? id,
  2. String? creatorId,
  3. int? currencyId,
  4. String? name,
  5. int? dealsCount,
  6. int? dealsAmount,
  7. bool? isPrivate,
  8. bool? isBookmarked,
  9. DateTime? createdAt,
  10. DateTime? updatedAt,
  11. List<String>? team,
})

Implementation

Funnels copyWith({
  String? id,
  String? creatorId,
  int? currencyId,
  String? name,
  String? logo,
  int? dealsCount,
  int? dealsAmount,
  bool? isPrivate,
  bool? isBookmarked,
  DateTime? createdAt,
  DateTime? updatedAt,
  List<String>? team,
}) {
  return Funnels(
    id: id ?? this.id,
    creatorId: creatorId ?? this.creatorId,
    currencyId: currencyId ?? this.currencyId,
    name: name ?? this.name,
    logo: logo ?? this.logo,
    dealsCount: dealsCount ?? this.dealsCount,
    dealsAmount: dealsAmount ?? this.dealsAmount,
    isPrivate: isPrivate ?? this.isPrivate,
    isBookmarked: isBookmarked ?? this.isBookmarked,
    createdAt: createdAt ?? this.createdAt,
    updatedAt: updatedAt ?? this.updatedAt,
    team: team ?? this.team,
  );
}