isObstacle method

bool isObstacle(
  1. GpsCoordinates coordinates
)

Implementation

bool isObstacle(GpsCoordinates coordinates) => obstacles.any((obstacle) => obstacle.isNear(coordinates));