finished method
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 );
}
Returns true if this path is not looped and the last waypoint is active.
bool finished() {
final lastIndex = waypoints.length - 1;
return loop == true ? false : ( _index == lastIndex );
}