HmsMarkerRotateAnimation constructor

HmsMarkerRotateAnimation({
  1. required String animationId,
  2. required double fromDegree,
  3. required double toDegree,
  4. int duration = 250,
  5. int fillMode = 0,
  6. int repeatCount = 0,
  7. int repeatMode = 1,
  8. int interpolator = 1,
  9. Function? onAnimationStart,
  10. Function? onAnimationEnd,
})

Implementation

HmsMarkerRotateAnimation({
  required this.animationId,
  required this.fromDegree,
  required this.toDegree,
  int duration = 250,
  int fillMode = 0,
  int repeatCount = 0,
  int repeatMode = 1,
  int interpolator = 1,
  this.onAnimationStart,
  this.onAnimationEnd,
}) : super(
        animationId: animationId,
        type: HmsMarkerAnimation.ROTATE,
        duration: duration,
        fillMode: fillMode,
        repeatCount: repeatCount,
        repeatMode: repeatMode,
        interpolator: interpolator,
      ) {
  setMethodChannel(animationId);
}