copyWith method

StarGiveawayWinnerOption copyWith({
  1. int? winnerCount,
  2. int? wonStarCount,
  3. bool? isDefault,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

StarGiveawayWinnerOption copyWith({
  int? winnerCount,
  int? wonStarCount,
  bool? isDefault,
}) => StarGiveawayWinnerOption(
  winnerCount: winnerCount ?? this.winnerCount,
  wonStarCount: wonStarCount ?? this.wonStarCount,
  isDefault: isDefault ?? this.isDefault,
);