GemAnimation.linear constructor
- Duration? duration,
- 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,
);