copyWith method
PremiumFeatures
copyWith({
- List<
PremiumFeature> ? features, - List<
PremiumLimit> ? limits, - InternalLinkType? paymentLink,
- dynamic extra,
- int? clientId,
Copy model with modified properties.
Properties:
features: The list of available featureslimits: The list of limits, increased for Premium userspayment_link: An internal link to be opened to pay for Telegram Premium if store payment isn't possible; may be null if direct payment isn't available
Implementation
PremiumFeatures copyWith({
List<PremiumFeature>? features,
List<PremiumLimit>? limits,
InternalLinkType? paymentLink,
dynamic extra,
int? clientId,
}) =>
PremiumFeatures(
features: features ?? this.features,
limits: limits ?? this.limits,
paymentLink: paymentLink ?? this.paymentLink,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);