advance method

void advance()

Implementation

void advance() => index++;