serializeU8 method

void serializeU8(
  1. int value
)

Implementation

void serializeU8(int value) {
  checkNumberRange(
    BigInt.from(value),
    BigInt.zero,
    BigInt.from(MAX_U8_NUMBER));

  serialize(Uint8List.fromList([value]));
}