FlyAnimationWidget constructor

FlyAnimationWidget({
  1. required GlobalKey<State<StatefulWidget>> animationEndKey,
  2. required int countOfAnimationWidgets,
  3. required double topPosition,
  4. required Widget childWidget,
  5. required Widget animationWidget,
  6. required int animationWidgetWidth,
  7. required int animationWidgetHeight,
  8. required int animationDurationInMillis,
  9. required bool hideAnimationWidgetOnComplete,
})

Implementation

FlyAnimationWidget(
    {required this.animationEndKey,
    required this.countOfAnimationWidgets,
    required this.topPosition,
    required this.childWidget,
    required this.animationWidget,
    required this.animationWidgetWidth,
    required this.animationWidgetHeight,
    required this.animationDurationInMillis,
    required this.hideAnimationWidgetOnComplete})
    : assert(countOfAnimationWidgets > 0,
          'Count of animation widget to be shown must be greater than 0'),
      assert(topPosition >= 0,
          'Animation widget\'s top position must be greater than or equal to zero'),
      assert(animationWidgetWidth >= 0,
          'Animation widget\'s width must be greater than or equal to zero & it must be greater than animationWidget\'s width'),
      assert(animationWidgetHeight >= 0,
          'Animation widget\'s height must be greater than or equal to zero & it must be greater than animationWidget\'s height'),
      assert(animationDurationInMillis >= 0,
          'Animation duration must be greater than or equal to zero');