A* algorithm
To use this plugin, add a_star
as a dependency in your pubspec.yaml file.
import 'package:flutter/material.dart';
Iterable<Point> result = AStar(
rows: 20,
columns: 20,
start: Point(5,0),
end: Point(8,19),
barriers: [
Point(10,5),
Point(10,6),
Point(10,7),
Point(10,8),
],
).findThePath();