OneShotAnimation constructor

OneShotAnimation(
  1. String animationName, {
  2. double mix = 1,
  3. bool autoplay = true,
  4. VoidCallback? onStop,
  5. VoidCallback? onStart,
})

Implementation

OneShotAnimation(
  String animationName, {
  double mix = 1,
  bool autoplay = true,
  this.onStop,
  this.onStart,
}) : super(animationName, mix: mix, autoplay: autoplay) {
  isActiveChanged.addListener(onActiveChanged);
}