path property

List<ILatLong> get path

A read-only view of the path.

In debug mode, this returns an unmodifiable list to prevent accidental modifications.

Implementation

List<ILatLong> get path {
  List<ILatLong> result = _path;
  assert(() {
    // in debug mode return an unmodifiable list to find violations
    result = List.unmodifiable(result);
    return true;
  }());
  return result;
}