copyWith method

DisplayUpgradedGift copyWith({
  1. MessageSender? ownerId,
  2. String? name,
})

Implementation

DisplayUpgradedGift copyWith({
  MessageSender? ownerId,
  String? name,
}) =>
    DisplayUpgradedGift(
      ownerId: ownerId ?? this.ownerId,
      name: name ?? this.name,
    );