AnimateIcons constructor

const AnimateIcons({
  1. required IconData startIcon,
  2. required IconData endIcon,
  3. required bool onStartIconPress(),
  4. required bool onEndIconPress(),
  5. double? size,
  6. required AnimateIconController controller,
  7. Color? startIconColor,
  8. Color? endIconColor,
  9. Duration? duration,
  10. bool? clockwise,
  11. String? startTooltip,
  12. 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,
});