isDone property

bool get isDone

Whether the scanner has completely consumed string.

Implementation

bool get isDone => position == string.length;