WalletBalanceModel.fromAmount constructor

WalletBalanceModel.fromAmount(
  1. BigInt amount
)

Implementation

factory WalletBalanceModel.fromAmount(BigInt amount) => WalletBalanceModel(
    wei: amount.toString(),
    ether:
        EtherAmount.inWei(amount).getValueInUnit(EtherUnit.ether).toString(),
    hex: '0x${amount.toRadixString(16)}');