convertToUint8List method

Uint8List convertToUint8List([
  1. Endian endian = Endian.big
])

Converts this instance to an Uint8List with elements in endianness.

Implementation

Uint8List convertToUint8List([Endian endian = Endian.big]) {
  if (Endian.host == endian) {
    return convertToUint8ListHostEndian();
  } else {
    return convertToUint8ListReversedEndian();
  }
}