CoreUtils class

Inheritance

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

createPlainUrl(String url) String
Creates a URL that ends with / if the provided URL didn't have it.
override
createSafeUrl(String url) String
Creates a URL that ends with :// if the provided URL didn't have it.
override
formatChainBalance(double? chainBalance, {int precision = 3}) String
override
formatCustomSchemeUri(String? appUrl, String? wcUri) Uri?
Formats a native URL for the given appUrl and wcUri. metamask:// is a native URL
override
formatWebUrl(String? appUrl, String? wcUri) Uri?
Formats a universal URL for the given appUrl and wcUri. https://metamask.app.link/ is a universal URL
override
getAPIHeaders(String projectId, [String? referer]) Map<String, String>
override
getUserAgent() String
Returns the user agent string. Used with the explorer and other API endpoints.
override
isHttpUrl(String url) bool
Returns true if the given url is a valid HTTP or HTTPS URL.
override
isValidEmail(String email) bool
override
isValidProjectID(String projectId) bool
Returns true if the given url is a valid HTTP or HTTPS URL.
override
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