copyWith method

  1. @override
StarTransactionTypePaidMessageReceive copyWith({
  1. MessageSender? senderId,
  2. int? messageCount,
  3. int? commissionPerMille,
  4. StarAmount? commissionStarAmount,
})
override

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

Implementation

@override
StarTransactionTypePaidMessageReceive copyWith({
  MessageSender? senderId,
  int? messageCount,
  int? commissionPerMille,
  StarAmount? commissionStarAmount,
}) => StarTransactionTypePaidMessageReceive(
  senderId: senderId ?? this.senderId,
  messageCount: messageCount ?? this.messageCount,
  commissionPerMille: commissionPerMille ?? this.commissionPerMille,
  commissionStarAmount: commissionStarAmount ?? this.commissionStarAmount,
);