RadialMenuCenterButton constructor

RadialMenuCenterButton({
  1. required bool isOpen,
  2. required Animation<double> openCloseAnimationController,
  3. Key? key,
  4. Animation<double>? activateAnimationController,
  5. VoidCallback? onPressed,
  6. Color? iconColor,
  7. Color? closedColor,
  8. Color? openedColor,
  9. double size = _defaultButtonSize,
})

Implementation

RadialMenuCenterButton({
  required this.isOpen,
  required this.openCloseAnimationController,
  super.key,
  this.activateAnimationController,
  this.onPressed,
  this.iconColor,
  this.closedColor,
  this.openedColor,
  this.size = _defaultButtonSize,
}) : _progress = Tween<double>(begin: 0.0, end: 1.0).animate(CurvedAnimation(
          parent: openCloseAnimationController,
          curve: const Interval(0.0, 0.5, curve: Curves.ease)));