Uint8List encodeInt32(int number) { return Uint8List(4)..buffer.asByteData().setInt32(0, number, Endian.big); }