setRepeatDistance method

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

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

Dart code snippet: @snippet location_window_map_objects_example.dart dart_DottedPolylineMapObject_setRepeatDistance

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 _distanceHandle = navigine_sdk_flutter_double_ToFfi(distance);
    final _handle = this.handle;
    final __resultHandle = _setRepeatDistanceFfi(_handle, _distanceHandle);
    navigine_sdk_flutter_double_ReleaseFfiHandle(_distanceHandle);
    final _result = navigine_sdk_flutter_bool_FromFfi(__resultHandle);
    navigine_sdk_flutter_bool_ReleaseFfiHandle(__resultHandle);
    return _result;
}