shortToByteArray static method

Uint8List shortToByteArray(
  1. int value
)

Implementation

static Uint8List shortToByteArray(int value) {
  final bytes = Uint8List(2);
  bytes[0] = value >> 8;
  bytes[1] = value;
  return bytes;
}