copyWith method

LaunchPrepaidGiveaway copyWith({
  1. int? giveawayId,
  2. GiveawayParameters? parameters,
  3. int? winnerCount,
  4. int? starCount,
})

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

Implementation

LaunchPrepaidGiveaway copyWith({
  int? giveawayId,
  GiveawayParameters? parameters,
  int? winnerCount,
  int? starCount,
}) => LaunchPrepaidGiveaway(
  giveawayId: giveawayId ?? this.giveawayId,
  parameters: parameters ?? this.parameters,
  winnerCount: winnerCount ?? this.winnerCount,
  starCount: starCount ?? this.starCount,
);