removeIconMapObject method
Removes an icon map object from the location view.
iconMapObject The icon map object instance IconMapObject.
Returns true if the operation is successful, false otherwise.
Example:
// Remove icon map object
if (_iconMapObject != null) {
bool removed = _locationWindow!.removeIconMapObject(_iconMapObject!);
print("Removed icon map object: $removed");
_iconMapObject = null;
}
Implementation
@override
bool removeIconMapObject(IconMapObject iconMapObject) {
final _removeIconMapObjectFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer<Void>, Pointer<Void>),
int Function(Pointer<Void>, Pointer<Void>)
>('navigine_sdk_flutter_LocationWindow_removeIconMapObject__IconMapObject'));
final _iconMapObjectHandle = navigine_sdk_flutter_IconMapObject_ToFfi(iconMapObject);
final _handle = this.handle;
final __resultHandle = _removeIconMapObjectFfi(_handle, _iconMapObjectHandle);
navigine_sdk_flutter_IconMapObject_ReleaseFfiHandle(_iconMapObjectHandle);
final _result = navigine_sdk_flutter_bool_FromFfi(__resultHandle);
navigine_sdk_flutter_bool_ReleaseFfiHandle(__resultHandle);
return _result;
}