copyWith method

StarSubscription copyWith({
  1. String? id,
  2. int? chatId,
  3. int? expirationDate,
  4. bool? isCanceled,
  5. bool? isExpiring,
  6. StarSubscriptionPricing? pricing,
  7. 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,
);