isClosedWay method
Returns true if the path is a closed way (the first and last points are the same).
This property is cached for performance.
Implementation
bool isClosedWay() {
if (_closed != null) {
return _closed!;
}
_closed = LatLongUtils.isClosedWay(_path);
return _closed!;
}