RotatingIconButton constructor

const RotatingIconButton({
  1. Key? key,
  2. required void onTap(),
  3. required Widget child,
  4. EdgeInsetsGeometry? padding,
  5. RotateType rotateType = RotateType.quarter,
  6. bool clockwise = true,
  7. Duration duration = const Duration(milliseconds: 300),
  8. Curve curve = Curves.easeInOut,
  9. ButtonShape shape = ButtonShape.rectangle,
  10. double elevation = 0.0,
  11. Color? shadowColor,
  12. Color? background,
  13. double? borderRadius,
})

Create RotatingIconButton widget.

A widget for rotating and smoothly animating any child widget of its own when tapped.

Implementation

const RotatingIconButton({
  Key? key,
  required this.onTap,
  required this.child,
  this.padding,
  this.rotateType = RotateType.quarter,
  this.clockwise = true,
  this.duration = const Duration(milliseconds: 300),
  this.curve = Curves.easeInOut,
  this.shape = ButtonShape.rectangle,
  this.elevation = 0.0,
  this.shadowColor,
  this.background,
  this.borderRadius,
}) : super(key: key);