Uint256Base class abstract

Abstract base class representing a 64-bit length big number, similar to Solidity.

This interface defines methods and properties for working with 64-bit length big numbers, with operations such as multiplication, addition, subtraction, division, and various conversions.

Implementers

Constructors

Uint256Base()

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-only

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.
toEtherAmount() EtherAmount
Converts this Uint256 to an EtherAmount in wei.
toHex() String
Converts this Uint256 to a hexadecimal string.
toInt() int
Converts this Uint256 to an integer.
toString() String
Converts this Uint256 to a string.
override
toUnit(int decimals) double
Converts this Uint256 to a double giving the decimals.
toWei() BigInt
Converts this Uint256 to an EtherAmount in wei.

Operators

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