checkValue static method

void checkValue(
  1. int value
)

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");
  }
}