NiceAnimatedSwapIcon constructor

const NiceAnimatedSwapIcon({
  1. Key? key,
  2. required IconData firstIcon,
  3. required IconData secondIcon,
  4. bool showSecond = false,
  5. Duration duration = const Duration(milliseconds: 300),
  6. double size = 24,
  7. Color? color,
  8. VoidCallback? onTap,
})

Implementation

const NiceAnimatedSwapIcon({
  super.key,
  required this.firstIcon,
  required this.secondIcon,
  this.showSecond = false,
  this.duration = const Duration(milliseconds: 300),
  this.size = 24,
  this.color,
  this.onTap,
});