take method

Uint8List take(
  1. int count
)

Returns a view of the leading count bytes and releases them from this accumulator. The returned list keeps the previous backing store alive.

Implementation

Uint8List take(int count) {
  _checkRange(count);
  return _consume(0, count);
}