copyWith method

PublicPostSearchLimits copyWith({
  1. int? dailyFreeQueryCount,
  2. int? remainingFreeQueryCount,
  3. int? nextFreeQueryIn,
  4. int? starCount,
  5. bool? isCurrentQueryFree,
  6. dynamic extra,
  7. 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

PublicPostSearchLimits copyWith({
  int? dailyFreeQueryCount,
  int? remainingFreeQueryCount,
  int? nextFreeQueryIn,
  int? starCount,
  bool? isCurrentQueryFree,
  dynamic extra,
  int? clientId,
}) => PublicPostSearchLimits(
  dailyFreeQueryCount: dailyFreeQueryCount ?? this.dailyFreeQueryCount,
  remainingFreeQueryCount:
      remainingFreeQueryCount ?? this.remainingFreeQueryCount,
  nextFreeQueryIn: nextFreeQueryIn ?? this.nextFreeQueryIn,
  starCount: starCount ?? this.starCount,
  isCurrentQueryFree: isCurrentQueryFree ?? this.isCurrentQueryFree,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);