ArrayInt16.zeros constructor

ArrayInt16.zeros({
  1. required int numShorts,
})

Implementation

factory ArrayInt16.zeros({required int numShorts}) {
  Uint8List list = Uint8List(numShorts * 2);
  return ArrayInt16(bytes: list.buffer.asByteData());
}