MorphingIcon constructor

const MorphingIcon({
  1. Key? key,
  2. required IconData icon,
  3. required IconData activeIcon,
  4. bool isActive = false,
  5. double size = 24,
  6. Color? color,
  7. Color? activeColor,
  8. Duration duration = const Duration(milliseconds: 300),
  9. VoidCallback? onPressed,
})

Implementation

const MorphingIcon({
  super.key,
  required this.icon,
  required this.activeIcon,
  this.isActive = false,
  this.size = 24,
  this.color,
  this.activeColor,
  this.duration = const Duration(milliseconds: 300),
  this.onPressed,
});