AnimateIcons constructor

const AnimateIcons({
  1. Key? key,
  2. required IconData startIcon,
  3. required IconData endIcon,
  4. required AnimateIconController controller,
  5. required bool onStartIconPress(),
  6. required bool onEndIconPress(),
  7. double size = 24.0,
  8. Duration duration = const Duration(milliseconds: 1000),
  9. Curve curve = Curves.easeInOut,
  10. bool clockwise = true,
  11. Color? startIconColor,
  12. Color? endIconColor,
  13. double amplitude = 180.0,
  14. double? splashRadius,
  15. Color splashColor = Colors.transparent,
  16. String? startTooltip,
  17. String? endTooltip,
})

Default constructor

Implementation

const AnimateIcons({
  Key? key,
  required this.startIcon,
  required this.endIcon,
  required this.controller,
  required this.onStartIconPress,
  required this.onEndIconPress,
  this.size = 24.0,
  this.duration = const Duration(milliseconds: 1000),
  this.curve = Curves.easeInOut,
  this.clockwise = true,
  this.startIconColor,
  this.endIconColor,
  this.amplitude = 180.0,
  this.splashRadius,
  this.splashColor = Colors.transparent,
  this.startTooltip,
  this.endTooltip,
}) : super(key: key);