setPosition method
Method is used to specify the center of the circle.
point Metrics coordinates of the center LocationPoint.
Returns true if the operation is successful, false otherwise.
Example:
// Set circle position
LocationPoint centerPoint = LocationPoint(100.0, 200.0);
bool success = _circleMapObject!.setPosition(centerPoint);
print(
"Set circle position to (${centerPoint.x}, ${centerPoint.y}): $success",
);
Implementation
@override
bool setPosition(LocationPoint point) {
final _setPositionFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer<Void>, LocationPointNative),
int Function(Pointer<Void>, LocationPointNative)
>('navigine_sdk_flutter_CircleMapObject_setPosition__Point'));
final __resultHandle = _setPositionFfi(this.ptr, LocationPointImpl.toNative(point));
final _result = (__resultHandle != 0);
exception.checkCallResult();
return _result;
}