AnimateIcons constructor
const
AnimateIcons({
- required IconData startIcon,
- required IconData endIcon,
- required bool onStartIconPress(),
- required bool onEndIconPress(),
- double? size,
- required AnimateIconController controller,
- Color? startIconColor,
- Color? endIconColor,
- Duration? duration,
- bool? clockwise,
- String? startTooltip,
- String? endTooltip,
Implementation
const AnimateIcons({
/// The IconData that will be visible before animation Starts
required this.startIcon,
/// The IconData that will be visible after animation ends
required this.endIcon,
/// The callback on startIcon Press
/// It should return a bool
/// If true is returned it'll animate to the end icon
/// if false is returned it'll not animate to the end icons
required this.onStartIconPress,
/// The callback on endIcon Press
/// /// It should return a bool
/// If true is returned it'll animate to the end icon
/// if false is returned it'll not animate to the end icons
required this.onEndIconPress,
/// The size of the icon that are to be shown.
this.size,
/// AnimateIcons controller
required this.controller,
/// The color to be used for the [startIcon]
this.startIconColor,
// The color to be used for the [endIcon]
this.endIconColor,
/// The duration for which the animation runs
this.duration,
/// If the animation runs in the clockwise or anticlockwise direction
this.clockwise,
/// This is the tooltip that will be used for the [startIcon]
this.startTooltip,
/// This is the tooltip that will be used for the [endIcon]
this.endTooltip,
});