isDone property Null safety

bool isDone

Whether the scanner has completely consumed string.

Implementation

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