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();
}
Removes all bytes from this byte array.
Example:
final bytes = Byte.fromList([1, 2, 3]);
bytes.clear();
print(bytes.isEmpty); // true
void clear() {
_bytes.clear();
}