RotatingIconButton constructor
const
RotatingIconButton({
- Key? key,
- required void onTap(),
- required Widget child,
- EdgeInsetsGeometry? padding,
- RotateType rotateType = RotateType.quarter,
- bool clockwise = true,
- Duration duration = const Duration(milliseconds: 300),
- Curve curve = Curves.easeInOut,
- ButtonShape shape = ButtonShape.rectangle,
- double elevation = 0.0,
- Color? shadowColor,
- Color? background,
- 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);