checkRange static method

int checkRange(
  1. int value
)

Returns value if in range, otherwise throws RangeError.

Implementation

static int checkRange(int value) => Bit(value).value;