ByteArray constructor

ByteArray(
  1. int length
)

Creates a Uint8List of the specified length (in elements), all of whose elements are initially zero.

Implementation

ByteArray(int length) : _bytes = Uint8List(length);