HexString constructor

HexString(
  1. String hexString
)

Implementation

HexString(String hexString) {
  if (hexString.startsWith("0x")) {
    _hexString = hexString;
  } else {
    _hexString = "0x$hexString";
  }
}