CoreUtils class

Constructors

CoreUtils()

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

createPlainUrl(String url) → String
createSafeUrl(String url) → String
formatChainBalance(double? chainBalance, {int precision = 4}) → String
formatCustomSchemeUri(String? appUrl, String? wcUri) → Uri?
formatImageUri(String imageUrl, String projectId) → String
formatStringBalance(String stringValue, {int precision = 4}) → String
formatWebUrl(String? appUrl, String? wcUri) → Uri?
getAPIHeaders(String projectId, [String? referer, String? origin]) → Map<String, String>
getApiQueryParams(String projectId) → Map<String, String>
getUserAgent() → String
isHttpUrl(String url) → bool
isValidEmail(String email) → bool
isValidProjectID(String projectId) → bool
stringAmountToDouble(String amount, int decimals) → double
Converts an amount string (in smallest units) to a decimal number. For example, stringAmountToDouble('10000000', 6) returns 10.0.
toPrecision(double value, {String? withSymbol, int decimals = 4}) → String