copyWith method

MessageGiftedGrams copyWith({
  1. int? gifterUserId,
  2. int? receiverUserId,
  3. int? gramAmount,
  4. String? transactionId,
  5. Sticker? sticker,
})

Implementation

MessageGiftedGrams copyWith({
  int? gifterUserId,
  int? receiverUserId,
  int? gramAmount,
  String? transactionId,
  Sticker? sticker,
}) =>
    MessageGiftedGrams(
      gifterUserId: gifterUserId ?? this.gifterUserId,
      receiverUserId: receiverUserId ?? this.receiverUserId,
      gramAmount: gramAmount ?? this.gramAmount,
      transactionId: transactionId ?? this.transactionId,
      sticker: sticker ?? this.sticker,
    );