AnimatedIconButton constructor

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

Implementation

const AnimatedIconButton({
  super.key,
  required this.icon,
  required this.onPressed,
  this.isActive = false,
  this.tooltip,
  this.size = 24,
  this.duration = const Duration(milliseconds: 220),
  this.backgroundColor,
  this.activeColor,
});