setSize method
@brief Method is used to specify the size of the icon. @param width Width of the icon in pixels. @param height Height of the icon in pixels. @return true if the operation is successful, false otherwise.
Dart code snippet: @snippet location_window_map_objects_example.dart dart_IconMapObject_setSize
Implementation
@override
bool setSize(double width, double height) {
final _setSizeFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer<Void>, Float, Float),
int Function(Pointer<Void>, double, double)
>('navigine_sdk_flutter_IconMapObject_setSize__Width_Height'));
final _widthHandle = navigine_sdk_flutter_double_ToFfi(width);
final _heightHandle = navigine_sdk_flutter_double_ToFfi(height);
final _handle = this.handle;
final __resultHandle = _setSizeFfi(_handle, _widthHandle, _heightHandle);
navigine_sdk_flutter_double_ReleaseFfiHandle(_widthHandle);
navigine_sdk_flutter_double_ReleaseFfiHandle(_heightHandle);
final _result = navigine_sdk_flutter_bool_FromFfi(__resultHandle);
navigine_sdk_flutter_bool_ReleaseFfiHandle(__resultHandle);
return _result;
}