copyWith method
StarSubscription
copyWith({
- String? id,
- int? chatId,
- int? expirationDate,
- bool? isCanceled,
- bool? isExpiring,
- StarSubscriptionPricing? pricing,
- StarSubscriptionType? type,
Implementation
StarSubscription copyWith({
String? id,
int? chatId,
int? expirationDate,
bool? isCanceled,
bool? isExpiring,
StarSubscriptionPricing? pricing,
StarSubscriptionType? type,
}) => StarSubscription(
id: id ?? this.id,
chatId: chatId ?? this.chatId,
expirationDate: expirationDate ?? this.expirationDate,
isCanceled: isCanceled ?? this.isCanceled,
isExpiring: isExpiring ?? this.isExpiring,
pricing: pricing ?? this.pricing,
type: type ?? this.type,
);