setPlacementSpacing method

  1. @override
bool setPlacementSpacing(
  1. double spacing
)
override

Method is used to specify the spacing between points for spaced placement. spacing The spacing distance in pixels. Default: 80. Returns true if the operation is successful, false otherwise.

Example:

// Set placement spacing
bool spacingSuccess = _dottedPolylineMapObject!.setPlacementSpacing(10.0);
print("Set dotted polyline placement spacing to 10.0: $spacingSuccess");

Implementation

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