NiceIconMorph constructor

const NiceIconMorph({
  1. Key? key,
  2. required IconData startIcon,
  3. required IconData endIcon,
  4. bool isEnd = false,
  5. Duration duration = const Duration(milliseconds: 300),
  6. Curve curve = Curves.easeInOut,
  7. double size = 24,
  8. Color? color,
  9. VoidCallback? onToggle,
})

Implementation

const NiceIconMorph({
  super.key,
  required this.startIcon,
  required this.endIcon,
  this.isEnd = false,
  this.duration = const Duration(milliseconds: 300),
  this.curve = Curves.easeInOut,
  this.size = 24,
  this.color,
  this.onToggle,
});