bytes method

Uint8List bytes({
  1. BitWidth bit = BitWidth.int,
})

Implementation

Uint8List bytes({BitWidth bit = BitWidth.int}) {
  var data = createUint8ListFromHexString(toRadixString(16).padLeft(16, '0'));
  return Uint8List.fromList(data
      .getRange(data.length - (bit.value / 8).round(), data.length)
      .toList());
}