BalanceResponse constructor

BalanceResponse({
  1. required String walletId,
  2. String? requestId,
  3. required BigInt confirmedBalance,
  4. required BigInt unconfirmedBalance,
  5. required BigInt totalBalance,
  6. BigInt? pendingBalance,
  7. BigInt? watchOnlyBalance,
  8. BigInt? reservedBalance,
})

Implementation

BalanceResponse({
  required this.walletId,
  this.requestId,
  required this.confirmedBalance,
  required this.unconfirmedBalance,
  required this.totalBalance,
  BigInt? pendingBalance,
  BigInt? watchOnlyBalance,
  BigInt? reservedBalance,
})  : pendingBalance = pendingBalance ?? BigInt.zero,
      watchOnlyBalance = watchOnlyBalance ?? BigInt.zero,
      reservedBalance = reservedBalance ?? BigInt.zero;