copyWith method

  1. @override
InternalLinkTypeStarPurchase copyWith({
  1. int? starCount,
  2. String? purpose,
  3. dynamic extra,
  4. int? clientId,
})
override

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

Implementation

@override
InternalLinkTypeStarPurchase copyWith({
  int? starCount,
  String? purpose,
  dynamic extra,
  int? clientId,
}) => InternalLinkTypeStarPurchase(
  starCount: starCount ?? this.starCount,
  purpose: purpose ?? this.purpose,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);