QudsAnimatedIcon constructor

const QudsAnimatedIcon({
  1. required AnimatedIconData iconData,
  2. Color? color,
  3. Color? startIconColor,
  4. Color? endIconColor,
  5. double? iconSize,
  6. bool showStartIcon = true,
  7. TextDirection? textDirection,
  8. Duration duration = const Duration(milliseconds: 250),
  9. 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);