removeCircleMapObject method

  1. @override
bool removeCircleMapObject(
  1. CircleMapObject circleMapObject
)
override

Removes a circle map object from the location view. circleMapObject The circle map object instance CircleMapObject. Returns true if the operation is successful, false otherwise.

Example:

// Remove circle map object
if (_circleMapObject != null) {
 bool removed = _locationWindow!.removeCircleMapObject(_circleMapObject!);
 print("Removed circle map object: $removed");
 _circleMapObject = null;
}

Implementation

@override
bool removeCircleMapObject(CircleMapObject circleMapObject) {
    final _removeCircleMapObjectFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
        Uint8 Function(Pointer<Void>, Pointer<Void>),
        int Function(Pointer<Void>, Pointer<Void>)
      >('navigine_sdk_flutter_LocationWindow_removeCircleMapObject__CircleMapObject'));
    final _circleMapObjectHandle = navigine_sdk_flutter_CircleMapObject_ToFfi(circleMapObject);
    final _handle = this.handle;
    final __resultHandle = _removeCircleMapObjectFfi(_handle, _circleMapObjectHandle);
    navigine_sdk_flutter_CircleMapObject_ReleaseFfiHandle(_circleMapObjectHandle);
    final _result = navigine_sdk_flutter_bool_FromFfi(__resultHandle);
    navigine_sdk_flutter_bool_ReleaseFfiHandle(__resultHandle);
    return _result;
}