copyWith method

GetStarTransactions copyWith({
  1. MessageSender? ownerId,
  2. String? subscriptionId,
  3. TransactionDirection? direction()?,
  4. String? offset,
  5. int? limit,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

GetStarTransactions copyWith({
  MessageSender? ownerId,
  String? subscriptionId,
  TransactionDirection? Function()? direction,
  String? offset,
  int? limit,
}) => GetStarTransactions(
  ownerId: ownerId ?? this.ownerId,
  subscriptionId: subscriptionId ?? this.subscriptionId,
  direction: direction != null ? direction() : this.direction,
  offset: offset ?? this.offset,
  limit: limit ?? this.limit,
);