copyWith method

ReceivedGifts copyWith({
  1. int? totalCount,
  2. List<ReceivedGift>? gifts,
  3. bool? areNotificationsEnabled,
  4. String? nextOffset,
})

Implementation

ReceivedGifts copyWith({
  int? totalCount,
  List<ReceivedGift>? gifts,
  bool? areNotificationsEnabled,
  String? nextOffset,
}) =>
    ReceivedGifts(
      totalCount: totalCount ?? this.totalCount,
      gifts: gifts ?? this.gifts,
      areNotificationsEnabled:
          areNotificationsEnabled ?? this.areNotificationsEnabled,
      nextOffset: nextOffset ?? this.nextOffset,
    );