FlyAnimationWidget constructor
FlyAnimationWidget({
- required GlobalKey<
State< animationEndKey,StatefulWidget> > - required int countOfAnimationWidgets,
- required double topPosition,
- required Widget childWidget,
- required Widget animationWidget,
- required int animationWidgetWidth,
- required int animationWidgetHeight,
- required int animationDurationInMillis,
- 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');