setRepeatDistance method

  1. @override
bool setRepeatDistance(
  1. double distance
)
override

Method is used to specify the distance interval for repeating points along the polyline. distance The repeat distance in pixels. Default: 0. Returns true if the operation is successful, false otherwise.

Example:

// Set repeat distance
bool repeatDistanceSuccess = _dottedPolylineMapObject!.setRepeatDistance(
 20.0,
);
print(
 "Set dotted polyline repeat distance to 20.0: $repeatDistanceSuccess",
);

Implementation

@override
bool setRepeatDistance(double distance) {
    final _setRepeatDistanceFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
        Uint8 Function(Pointer<Void>, Float),
        int Function(Pointer<Void>, double)
      >('navigine_sdk_flutter_DottedPolylineMapObject_setRepeatDistance__Distance'));
    final __resultHandle = _setRepeatDistanceFfi(this.ptr, distance);
    final _result = (__resultHandle != 0);
    exception.checkCallResult();
    return _result;
}