checkUint8 function

void checkUint8(
  1. int i
)

Implementation

void checkUint8(int i) {
  if (i < 0 || i > 0xff) {
    throw ArgumentError.value(i, 'value', 'Not a uint8');
  }
}