isGoal method

  1. @override
bool isGoal()
override

Whether this state is the goal state.

Implementation

@override
bool isGoal() => position.isNear(goal);