copyWith method
GiftPremiumWithStars
copyWith({
- int? userId,
- int? starCount,
- int? monthCount,
- FormattedText? text,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
GiftPremiumWithStars copyWith({
int? userId,
int? starCount,
int? monthCount,
FormattedText? text,
}) => GiftPremiumWithStars(
userId: userId ?? this.userId,
starCount: starCount ?? this.starCount,
monthCount: monthCount ?? this.monthCount,
text: text ?? this.text,
);