first property

Uint8List get first

First segment view as a Uint8List.

Note: this allocates a typed-data view when non-empty.

Implementation

Uint8List get first {
  _ensureValid();
  final n = _len1;
  if (n == 0) return _empty;
  return Uint8List.sublistView(_buf1, _off1, _off1 + n);
}