position property

int get position

Current read/write cursor position (bytes from start of blob).

Implementation

int get position => _offset;
set position (int p)

Move the cursor. Must be in [0, length].

Implementation

set position(int p) {
  if (p < 0 || p > length) {
    throw RangeError.range(p, 0, length, 'position');
  }
  _offset = p;
}