getBaseLine method Null safety
Get the base line of triangle
In a triangle, baseline is the longest side among the 3.
Implementation
static Line getBaseLine(List<Point> triangle) {
assert(triangle.length == 3);
final sides = PolygonUtils.getPolygonSides(triangle);
return sides.reduce((cur, next) => cur.length > next.length ? cur : next);
}