isAfter method

bool isAfter(
  1. CodeLinePosition position
)

Whether the current code position is after the given position.

Implementation

bool isAfter(CodeLinePosition position) {
  if (index > position.index) {
    return true;
  }
  if (index < position.index) {
    return false;
  }
  return offset > position.offset;
}