finished method

bool finished()

Returns true if this path is not looped and the last waypoint is active.

Implementation

bool finished() {
	final lastIndex = waypoints.length - 1;
	return loop == true ? false : ( _index == lastIndex );
}