GemAnimation.linear constructor

GemAnimation.linear({
  1. Duration? duration,
  2. void onCompleted()?,
})

Linear animation constructor

Parameters

  • IN duration the animation duration. The value null means a default duration set internally by the SDK
  • IN onCompleted the callback which is triggered when animation is completed

Implementation

GemAnimation.linear({Duration? duration, void Function()? onCompleted})
    : this(
        type: AnimationType.linear,
        duration: duration == null ? 0 : duration.inMilliseconds,
        onCompleted: onCompleted,
      );