copyWith method

StarSubscriptions copyWith({
  1. StarAmount? starAmount,
  2. List<StarSubscription>? subscriptions,
  3. int? requiredStarCount,
  4. String? nextOffset,
  5. dynamic extra,
  6. 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,
);