AnimateLikeWidget constructor

AnimateLikeWidget({
  1. Key? key,
  2. Duration duration = const Duration(milliseconds: 2000),
  3. Widget child = const Icon(Icons.favorite, color: Colors.red),
  4. VoidCallback? onDestory,
  5. Curve curve = Curves.easeInOutCubic,
})

Implementation

AnimateLikeWidget({
  Key? key,
  this.duration = const Duration(milliseconds: 2000),
  this.child = const Icon(Icons.favorite, color: Colors.red),
  this.onDestory,
  this.curve = Curves.easeInOutCubic,
}) : super(key: key);