clear method

void clear()

Removes all bytes from this byte array.

Example:

final bytes = Byte.fromList([1, 2, 3]);
bytes.clear();
print(bytes.isEmpty);  // true

Implementation

void clear() {
  _bytes.clear();
}