QudsAnimatedIcon constructor
const
QudsAnimatedIcon({
- required AnimatedIconData iconData,
- Color? color,
- Color? startIconColor,
- Color? endIconColor,
- double? iconSize,
- bool showStartIcon = true,
- TextDirection? textDirection,
- Duration duration = const Duration(milliseconds: 250),
- Key? key,
iconData the AnimatedIconData will be shown in this widget.
color is the icons color, will be applied to the
both of icons, unless startIconColor, endIconColor are set.
iconSize is the size of the two icons.
showStartIcon if is true
the widget will show initially the startIcon,
if set to false
it will show initially the endIcon.
duration the duration of the transition, initially set to 250 ms
textDirection the direction of the icons.
Implementation
const QudsAnimatedIcon(
{required this.iconData,
this.color,
this.startIconColor,
this.endIconColor,
this.iconSize,
this.showStartIcon = true,
this.textDirection,
this.duration = const Duration(milliseconds: 250),
Key? key})
: super(key: key);