hexToBool static method

bool hexToBool(
  1. String v
)

Implementation

static bool hexToBool(String v) {
  if (v == "0x" || v != "0x1" && v != "0x0") {
    throw ArgumentError("invalid hex for bolean $v");
  }
  return v == "0x1";
}