toUint8List32 method

Uint8List toUint8List32()

Converts this 32 bits int to 4 bytes.

Implementation

Uint8List toUint8List32() {
  var bs = Uint8List(4);
  var data = bs.asByteData();
  data.setUint32(0, this);
  return bs;
}