Amount class

Annotations
  • @freezed

Constructors

Amount({required BigInt raw, required TokenInfo tokenInfo})
factory
Amount.fromJson(Map<String, dynamic> json)
factory
Amount.raw(BigInt raw, {TokenInfo tokenInfo = TokenInfo.kaspa})
factory
Amount.rawInt(int raw, {TokenInfo tokenInfo = TokenInfo.kaspa})
factory
Amount.rawInt64(Int64 raw, {TokenInfo tokenInfo = TokenInfo.kaspa})
factory
Amount.value(Decimal value, {TokenInfo tokenInfo = TokenInfo.kaspa})
factory

Properties

copyWith → $AmountCopyWith<Amount>
no setterinherited
decimals int
no setter
hashCode int
The hash code for this object.
no setterinherited
raw BigInt
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
symbolLabel String
no setter
tokenInfo TokenInfo
no setterinherited
value → Decimal
latefinal

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
override

Operators

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

Static Properties

zero Amount
final