AnimateChangeIcon constructor
const
AnimateChangeIcon({
- required Icon firstIcon,
- required Icon secondIcon,
- Duration animateDuration = const Duration(milliseconds: 300),
- bool initialPushed = false,
- AnimationController? animationController,
- Curve scaleAnimationCurve = Curves.linear,
- Curve rotateAnimationCurve = Curves.linear,
- double rotateBeginAngle = -pi / 2,
- double rotateEndAngle = 0.0,
- void onTap()?,
- Key? key,
Implementation
const AnimateChangeIcon({
required this.firstIcon,
required this.secondIcon,
this.animateDuration = const Duration(milliseconds: 300),
this.initialPushed = false,
this.animationController,
this.scaleAnimationCurve = Curves.linear,
this.rotateAnimationCurve = Curves.linear,
this.rotateBeginAngle = -pi / 2,
this.rotateEndAngle = 0.0,
this.onTap,
super.key,
});