Uint256 class

Implemented types

Constructors

Uint256(BigInt _value)
Uint256.fromHex(String hex)
factory
Uint256.fromWei(EtherAmount inWei)
factory

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
value BigInt
The value of the Uint256.
read-onlyoverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toEther() BigInt
Converts this Uint256 to an EtherAmount in ether.
override
toEtherAmount() EtherAmount
Converts this Uint256 to an EtherAmount in wei.
override
toHex() String
Converts this Uint256 to a hexadecimal string.
override
toInt() int
Converts this Uint256 to an integer.
override
toString() String
A string representation of this object.
override
toUnit(int decimals) double
Converts this Uint256 to a double giving the decimals.
override
toWei() BigInt
Converts this Uint256 to an EtherAmount in wei.
override

Operators

operator *(covariant Uint256 other) Uint256
Multiplies this Uint256 by other.
override
operator +(covariant Uint256 other) Uint256
Adds other to this Uint256.
override
operator -(covariant Uint256 other) Uint256
Subtracts other from this Uint256.
override
operator /(covariant Uint256 other) Uint256
Divides this Uint256 by other.
override
operator ==(Object other) bool
The equality operator.
inherited

Static Properties

zero Uint256
read-only