toEthereAmount method

EtherAmount? toEthereAmount()

Implementation

EtherAmount? toEthereAmount() {
  if (this != null) {
    final hexValue = this!.replaceFirst('0x', '');
    return EtherAmount.fromBigInt(
      EtherUnit.wei,
      BigInt.parse(hexValue, radix: 16),
    );
  }
  return null;
}