tryHexToBool static method

bool? tryHexToBool(
  1. String? v
)

Implementation

static bool? tryHexToBool(String? v) {
  if (v == "0x" || v != "0x1" && v != "0x0") {
    return null;
  }
  return v == "0x1";
}