writeUint32 method

void writeUint32(
  1. int value, [
  2. Endian? endian
])

Writes the value as a 4 byte long unsigned integer at the current writerIndex (inclusive).

endian the endianness of the number, defaults to kEndianness which is initialized with Endian.big.


Exceptions:

Implementation

void writeUint32(int value, [Endian? endian]) =>
    writeByteData(4).setUint32(0, value, endian ?? kEndianness);