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