setAngleAnimated method

  1. @override
bool setAngleAnimated(
  1. double angle,
  2. double duration,
  3. AnimationType type
)
override

Animates rotation to the given angle. Returns true if the operation is successful, false otherwise.

Example:

bool angleAnimOk = m.setAngleAnimated(90.0, 0.5, AnimationType.QUINT);
print("Model setAngleAnimated: $angleAnimOk");

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_ModelMapObject_setAngleAnimated__Angle_Duration_Type'));
    final __resultHandle = _setAngleAnimatedFfi(this.ptr, angle, duration, AnimationTypeImpl.toInt(type));
    final _result = (__resultHandle != 0);
    exception.checkCallResult();
    return _result;
}