StringUtilities class
Constructors
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
-
convertFiletToBase64UlSafe(
File file) → dynamic -
convertFromBase64ToBase64UrlSafe(
String stringToConvert) → dynamic -
convertFromBase64ToBase64UrlUnsafe(
String stringToUnconvert) → dynamic -
convertFromBase64UrlSafeToBase64(
String stringToConvert) → dynamic -
convertToHex(
String stringToConvert) → dynamic -
fromB64UrlToBytes(
String message) → List< int> -
internalTransactionBeanHash(
InternalTransactionBean itb) → String -
jsonNotEscapedToCorrectFormat(
String unescapedJson) → String - A static method jsonNotEscapedToCorrectFormat that takes a string unescapedJson containing a JSON object in a format where the keys and values are not properly escaped with double quotes. The method converts this string to the correct JSON format by adding double quotes to the keys and values. The method operates by using a series of replaceAll calls to add the necessary double quotes. The first replaceAll call adds a double quote before each opening brace ({) to properly start the JSON object. The second replaceAll call adds a double quote after each key and a colon, and another double quote before each value to properly format each key-value pair. The third replaceAll call adds a comma and a double quote after each value to separate the key-value pairs. Finally, the last replaceAll call adds a double quote after each closing brace (}) to properly end the JSON object. The method returns the resulting string in the correct JSON format. Note that while this method works for the specific format of unescaped JSON provided, it may not work for all possible variations of unescaped JSON.
-
randomAlphanumeric(
int length) → String -
singleTransactionInclusionHash(
String? itbHash, String? addr, String? sig, String? random, String? walletCypher) → String