copyWith method
PremiumFeatures
copyWith({
- List<
PremiumFeature> ? features, - List<
PremiumLimit> ? limits, - InternalLinkType? paymentLink()?,
- dynamic extra,
- int? clientId,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
PremiumFeatures copyWith({
List<PremiumFeature>? features,
List<PremiumLimit>? limits,
InternalLinkType? Function()? paymentLink,
dynamic extra,
int? clientId,
}) =>
PremiumFeatures(
features: features ?? this.features,
limits: limits ?? this.limits,
paymentLink: paymentLink != null ? paymentLink() : this.paymentLink,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);