toEtherAmount method

  1. @override
EtherAmount toEtherAmount()
override

Converts this Uint256 to an EtherAmount in wei.

Returns an EtherAmount

Implementation

@override
EtherAmount toEtherAmount() {
  return EtherAmount.fromBigInt(EtherUnit.wei, _value);
}