copyWith method

RemoveGiftCollectionGifts copyWith({
  1. MessageSender? ownerId,
  2. int? collectionId,
  3. List<String>? receivedGiftIds,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

RemoveGiftCollectionGifts copyWith({
  MessageSender? ownerId,
  int? collectionId,
  List<String>? receivedGiftIds,
}) => RemoveGiftCollectionGifts(
  ownerId: ownerId ?? this.ownerId,
  collectionId: collectionId ?? this.collectionId,
  receivedGiftIds: receivedGiftIds ?? this.receivedGiftIds,
);