copyWith method
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,
- 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,
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,
);
}