BalanceUpdatedEvent constructor

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

Implementation

BalanceUpdatedEvent({
  required this.walletId,
  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;