setAngleAnimated method
@brief Method is used to rotate the icon with the specified animation. @param angle Rotation angle in degrees. @param duration Animation duration in seconds. @param type Animation type @see AnimationType "AnimationType". @return true if the operation is successful, false otherwise.
Dart code snippet: @snippet location_window_map_objects_example.dart dart_IconMapObject_setAngleAnimated
Implementation
@override
bool setAngleAnimated(double angle, double duration, AnimationType type) {
final _setAngleAnimatedFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Uint8 Function(Pointer<Void>, Float, Float, Uint32),
int Function(Pointer<Void>, double, double, int)
>('navigine_sdk_flutter_IconMapObject_setAngleAnimated__Angle_Duration_Type'));
final _angleHandle = navigine_sdk_flutter_double_ToFfi(angle);
final _durationHandle = navigine_sdk_flutter_double_ToFfi(duration);
final _typeHandle = navigine_sdk_flutter_AnimationType_ToFfi(type);
final _handle = this.handle;
final __resultHandle = _setAngleAnimatedFfi(_handle, _angleHandle, _durationHandle, _typeHandle);
navigine_sdk_flutter_double_ReleaseFfiHandle(_angleHandle);
navigine_sdk_flutter_double_ReleaseFfiHandle(_durationHandle);
navigine_sdk_flutter_AnimationType_ReleaseFfiHandle(_typeHandle);
final _result = navigine_sdk_flutter_bool_FromFfi(__resultHandle);
navigine_sdk_flutter_bool_ReleaseFfiHandle(__resultHandle);
return _result;
}