index property

int get index
inherited

The index of this item in the buffer (0 is the oldest scrollback line). Must only be accessed when attached is true; throws StateError otherwise.

Implementation

int get index {
  if (!attached) {
    throw StateError('the line is not attached to a buffer');
  }
  return _index;
}