setAngle method
@brief Method is used to specify the rotation angle of the icon. @param angle Rotation angle in degrees. Default: 0. @return true if the operation is successful, false otherwise.
Dart code snippet: @snippet location_window_map_objects_example.dart dart_IconMapObject_setAngle
Implementation
@override
bool setAngle(double angle) {
final _setAngleFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer<Void>, Float),
int Function(Pointer<Void>, double)
>('navigine_sdk_flutter_IconMapObject_setAngle__Angle'));
final _angleHandle = navigine_sdk_flutter_double_ToFfi(angle);
final _handle = this.handle;
final __resultHandle = _setAngleFfi(_handle, _angleHandle);
navigine_sdk_flutter_double_ReleaseFfiHandle(_angleHandle);
final _result = navigine_sdk_flutter_bool_FromFfi(__resultHandle);
navigine_sdk_flutter_bool_ReleaseFfiHandle(__resultHandle);
return _result;
}