setPlacementSpacing method
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 _spacingHandle = navigine_sdk_flutter_double_ToFfi(spacing);
final _handle = this.handle;
final __resultHandle = _setPlacementSpacingFfi(_handle, _spacingHandle);
navigine_sdk_flutter_double_ReleaseFfiHandle(_spacingHandle);
final _result = navigine_sdk_flutter_bool_FromFfi(__resultHandle);
navigine_sdk_flutter_bool_ReleaseFfiHandle(__resultHandle);
return _result;
}