copyWith method

PieTheme copyWith({
  1. Brightness? brightness,
  2. Color? overlayColor,
  3. Color? pointerColor,
  4. Decoration? pointerDecoration,
  5. PieButtonTheme? buttonTheme,
  6. PieButtonTheme? buttonThemeHovered,
  7. double? iconSize,
  8. double? radius,
  9. double? spacing,
  10. double? customAngleDiff,
  11. double? angleOffset,
  12. double? customAngle,
  13. PieAnchor? customAngleAnchor,
  14. Alignment? menuAlignment,
  15. Offset? menuDisplacement,
  16. double? buttonSize,
  17. double? pointerSize,
  18. EdgeInsets? tooltipPadding,
  19. TextStyle? tooltipTextStyle,
  20. TextAlign? tooltipTextAlign,
  21. Alignment? tooltipCanvasAlignment,
  22. bool? tooltipUseFittedBox,
  23. Duration? pieBounceDuration,
  24. bool? childBounceEnabled,
  25. bool? childTiltEnabled,
  26. Duration? childBounceDuration,
  27. double? childBounceDistance,
  28. Curve? childBounceCurve,
  29. Curve? childBounceReverseCurve,
  30. Duration? fadeDuration,
  31. Duration? hoverDuration,
  32. Duration? delayDuration,
  33. bool? leftClickShowsMenu,
  34. bool? rightClickShowsMenu,
  35. PieOverlayStyle? overlayStyle,
  36. double? childOpacityOnButtonHover,
})

Creates a copy of this theme but with the given fields replaced with the new values.

Implementation

PieTheme copyWith({
  Brightness? brightness,
  Color? overlayColor,
  Color? pointerColor,
  Decoration? pointerDecoration,
  PieButtonTheme? buttonTheme,
  PieButtonTheme? buttonThemeHovered,
  double? iconSize,
  double? radius,
  double? spacing,
  double? customAngleDiff,
  double? angleOffset,
  double? customAngle,
  PieAnchor? customAngleAnchor,
  Alignment? menuAlignment,
  Offset? menuDisplacement,
  double? buttonSize,
  double? pointerSize,
  EdgeInsets? tooltipPadding,
  TextStyle? tooltipTextStyle,
  TextAlign? tooltipTextAlign,
  Alignment? tooltipCanvasAlignment,
  bool? tooltipUseFittedBox,
  Duration? pieBounceDuration,
  bool? childBounceEnabled,
  bool? childTiltEnabled,
  Duration? childBounceDuration,
  double? childBounceDistance,
  Curve? childBounceCurve,
  Curve? childBounceReverseCurve,
  Duration? fadeDuration,
  Duration? hoverDuration,
  Duration? delayDuration,
  bool? leftClickShowsMenu,
  bool? rightClickShowsMenu,
  PieOverlayStyle? overlayStyle,
  double? childOpacityOnButtonHover,
}) {
  return PieTheme(
    brightness: brightness ?? this.brightness,
    overlayColor: overlayColor ?? this.overlayColor,
    pointerColor: pointerColor ?? this.pointerColor,
    pointerDecoration: pointerDecoration ?? this.pointerDecoration,
    buttonTheme: buttonTheme ?? this.buttonTheme,
    buttonThemeHovered: buttonThemeHovered ?? this.buttonThemeHovered,
    iconSize: iconSize ?? this.iconSize,
    radius: radius ?? this.radius,
    spacing: spacing ?? this.spacing,
    customAngleDiff: customAngleDiff ?? this.customAngleDiff,
    angleOffset: angleOffset ?? this.angleOffset,
    customAngle: customAngle ?? this.customAngle,
    customAngleAnchor: customAngleAnchor ?? this.customAngleAnchor,
    menuAlignment: menuAlignment ?? this.menuAlignment,
    menuDisplacement: menuDisplacement ?? this.menuDisplacement,
    buttonSize: buttonSize ?? this.buttonSize,
    pointerSize: pointerSize ?? this.pointerSize,
    tooltipPadding: tooltipPadding ?? this.tooltipPadding,
    tooltipTextStyle: tooltipTextStyle ?? this.tooltipTextStyle,
    tooltipTextAlign: tooltipTextAlign ?? this.tooltipTextAlign,
    tooltipCanvasAlignment:
        tooltipCanvasAlignment ?? this.tooltipCanvasAlignment,
    tooltipUseFittedBox: tooltipUseFittedBox ?? this.tooltipUseFittedBox,
    pieBounceDuration: pieBounceDuration ?? this.pieBounceDuration,
    childBounceEnabled: childBounceEnabled ?? this.childBounceEnabled,
    childTiltEnabled: childTiltEnabled ?? this.childTiltEnabled,
    childBounceDuration: childBounceDuration ?? this.childBounceDuration,
    childBounceFactor: childBounceDistance ?? childBounceFactor,
    childBounceCurve: childBounceCurve ?? this.childBounceCurve,
    childBounceReverseCurve:
        childBounceReverseCurve ?? this.childBounceReverseCurve,
    fadeDuration: fadeDuration ?? this.fadeDuration,
    hoverDuration: hoverDuration ?? this.hoverDuration,
    delayDuration: delayDuration ?? this.delayDuration,
    leftClickShowsMenu: leftClickShowsMenu ?? this.leftClickShowsMenu,
    rightClickShowsMenu: rightClickShowsMenu ?? this.rightClickShowsMenu,
    overlayStyle: overlayStyle ?? this.overlayStyle,
    childOpacityOnButtonHover:
        childOpacityOnButtonHover ?? this.childOpacityOnButtonHover,
  );
}