setPlacement method
Method is used to specify the placement mode for points along the polyline.
placement The placement mode Placement. Default: VERTEX.
Returns true if the operation is successful, false otherwise.
Example:
// Set placement type
bool placementSuccess = _dottedPolylineMapObject!.setPlacement(
Placement.center,
);
print("Set dotted polyline placement to center: $placementSuccess");
Implementation
@override
bool setPlacement(Placement placement) {
final _setPlacementFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer<Void>, Uint32),
int Function(Pointer<Void>, int)
>('navigine_sdk_flutter_DottedPolylineMapObject_setPlacement__Placement'));
final __resultHandle = _setPlacementFfi(this.ptr, PlacementImpl.toInt(placement));
final _result = (__resultHandle != 0);
exception.checkCallResult();
return _result;
}