length property

double get length
override

Total route length in meters.

Example:

// Get route length
double length = path.length;
print("Route length: $length meters");

Implementation

double get length {
    final _getFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
        Float Function(Pointer<Void>),
        double Function(Pointer<Void>)
      >('navigine_sdk_flutter_RoutePath_length_get'));

    final _lengthHandle = _getFfi(this.ptr);
    final _result = _lengthHandle;
    exception.checkCallResult();
    return _result;
}