Fmt class

Constructors

Fmt()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Static Methods

address(String? addr, {int pad = 6}) String?
balance(String? raw, int decimals, {int length = 4}) String
combined number transform 1-3: from raw
balanceDouble(String raw, int decimals) double
combined number transform 1-2: from raw
balanceInt(String? raw) BigInt
number transform 1: from raw
balanceTotal(BalanceData? balance) BigInt
bigIntToDouble(BigInt? value, int decimals) double
number transform 2: from
blockToTime(int? blocks, int blockDuration) String
dateTime(DateTime? time) String
doubleFormat(double? value, {int length = 4, int round = 0}) String
number transform 3: from
isAddress(String txt) bool
isHexString(String hex) bool
priceCeil(double? value, {int lengthFixed = 2, int? lengthMax}) String
number transform 5: from
priceCeilBigInt(BigInt? value, int decimals, {int lengthFixed = 2, int? lengthMax}) String
priceFloor(double? value, {int lengthFixed = 2, int? lengthMax}) String
number transform 6: from
priceFloorBigInt(BigInt? value, int decimals, {int lengthFixed = 2, int? lengthMax}) String
ratio(dynamic number, {bool needSymbol = true}) String
number transform 7: from number to
token(BigInt? value, int decimals, {int length = 4}) String
combined number transform 2-3: from
tokenInt(String? value, int decimals) BigInt
number transform 4: from