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 __resultHandle = _removeIconMapObjectFfi(this.ptr, IconMapObject$Impl.getNativePtr(iconMapObject));
final _result = (__resultHandle != 0);
exception.checkCallResult();
return _result;
}