checkValue static method
Checks if the sighash value is valid and returns an ArgumentError if not.
Implementation
static void checkValue(int value) {
if (!validValue(value)) {
throw ArgumentError.value(value, "value", "not a valid hash type");
}
}