RotateWidget constructor

RotateWidget({
  1. Key? key,
  2. Color inavtiveColor = Colors.grey,
  3. Color activeColor = Colors.red,
  4. double inactiveSize = 40,
  5. double activeSize = 50,
  6. Curve curve = Curves.ease,
  7. Duration duration = const Duration(milliseconds: 1000),
  8. required Function onTap,
  9. IconData activeIcon = Icons.favorite,
  10. IconData inactiveIcon = Icons.favorite_border,
})

Implementation

RotateWidget({
  Key? key,
  this.inavtiveColor = Colors.grey,
  this.activeColor = Colors.red,
  this.inactiveSize = 40,
  this.activeSize = 50,
  this.curve = Curves.ease,
  this.duration = const Duration(milliseconds: 1000),
  required this.onTap,
  this.activeIcon = Icons.favorite,
  this.inactiveIcon = Icons.favorite_border,
}) : super(key: key);