HexUtils class
A utility class that provides functions for converting hex strings.
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
-
getBytes(
String hex) → List< int> -
Converts
hex
string to a byte array. -
getString(
List< int> bytes) → String - Converts byte array to a hex string.
-
hexToBinary(
String hexString) → String - Converts a hex string to a binary string.
-
hexToBytes(
String hexString) → Uint8List - Converts a hex string to a Uint8List.
-
isHex(
String input) → bool -
Determines whether or not an
input
string is a hex string. -
isHexString(
String input) → bool -
Determines whether the
input
string is a valid hex string. -
reverseHexString(
String input) → String -
Returns the reversed order of the given
input
hex string. -
tryGetBytes(
String hex) → List< int> ? -
Tries to convert
hex
string to a byte array. -
tryHexToUtf8(
String hex) → String -
Tries to convert a
hex
string to a UTF-8 string. When it fails to decode UTF-8, it returns the non UTF-8 string instead. -
utf8ToHex(
String input) → String -
Converts a UTF-8
input
string to hex string.