copyWith method
StarRevenueStatus
copyWith({
- StarAmount? totalAmount,
- StarAmount? currentAmount,
- StarAmount? availableAmount,
- bool? withdrawalEnabled,
- int? nextWithdrawalIn,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
StarRevenueStatus copyWith({
StarAmount? totalAmount,
StarAmount? currentAmount,
StarAmount? availableAmount,
bool? withdrawalEnabled,
int? nextWithdrawalIn,
}) => StarRevenueStatus(
totalAmount: totalAmount ?? this.totalAmount,
currentAmount: currentAmount ?? this.currentAmount,
availableAmount: availableAmount ?? this.availableAmount,
withdrawalEnabled: withdrawalEnabled ?? this.withdrawalEnabled,
nextWithdrawalIn: nextWithdrawalIn ?? this.nextWithdrawalIn,
);