copyWith method
StarSubscriptions
copyWith({
- StarAmount? starAmount,
- List<
StarSubscription> ? subscriptions, - int? requiredStarCount,
- String? nextOffset,
- 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
StarSubscriptions copyWith({
StarAmount? starAmount,
List<StarSubscription>? subscriptions,
int? requiredStarCount,
String? nextOffset,
dynamic extra,
int? clientId,
}) => StarSubscriptions(
starAmount: starAmount ?? this.starAmount,
subscriptions: subscriptions ?? this.subscriptions,
requiredStarCount: requiredStarCount ?? this.requiredStarCount,
nextOffset: nextOffset ?? this.nextOffset,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);