EtherUnit enum Null safety

Inheritance

Constructors

EtherUnit()
const

Values

wei → const EtherUnit

Wei, the smallest and atomic amount of Ether

const EtherUnit(0)
kwei → const EtherUnit

kwei, 1000 wei

const EtherUnit(1)
mwei → const EtherUnit

Mwei, one million wei

const EtherUnit(2)
gwei → const EtherUnit

Gwei, one billion wei. Typically a reasonable unit to measure gas prices.

const EtherUnit(3)
szabo → const EtherUnit

szabo, 10^12 wei or 1 μEther

const EtherUnit(4)
finney → const EtherUnit

finney, 10^15 wei or 1 mEther

const EtherUnit(5)
ether → const EtherUnit
const EtherUnit(6)

Properties

hashCode int
The hash code for this object.
read-only, inherited
index int
A numeric identifier for the enumerated value.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<EtherUnit>
A constant List of the values in this enum, in order of their declaration.
[wei, kwei, mwei, gwei, szabo, finney, ether]