copyWith method
SContextMenuTheme
copyWith({
- double? panelBorderRadius,
- double? panelBlurSigma,
- EdgeInsets? panelPadding,
- Color? panelBackgroundColor,
- Color? panelBorderColor,
- List<
BoxShadow> ? panelShadows, - ArrowShape? arrowShape,
- double? arrowBaseWidth,
- double? arrowCornerRadius,
- double? arrowTipGap,
- double? arrowMaxLength,
- double? arrowTipRoundness,
- Duration? showDuration,
- Duration? hideDuration,
- Color? iconColor,
- Color? destructiveColor,
- Color? hoverColor,
- Color? arrowColor,
Implementation
SContextMenuTheme copyWith({
double? panelBorderRadius,
double? panelBlurSigma,
EdgeInsets? panelPadding,
Color? panelBackgroundColor,
Color? panelBorderColor,
List<BoxShadow>? panelShadows,
ArrowShape? arrowShape,
double? arrowBaseWidth,
double? arrowCornerRadius,
double? arrowTipGap,
double? arrowMaxLength,
double? arrowTipRoundness,
Duration? showDuration,
Duration? hideDuration,
Color? iconColor,
Color? destructiveColor,
Color? hoverColor,
Color? arrowColor,
}) =>
SContextMenuTheme(
panelBorderRadius: panelBorderRadius ?? this.panelBorderRadius,
panelBlurSigma: panelBlurSigma ?? this.panelBlurSigma,
panelPadding: panelPadding ?? this.panelPadding,
panelBackgroundColor: panelBackgroundColor ?? this.panelBackgroundColor,
panelBorderColor: panelBorderColor ?? this.panelBorderColor,
panelShadows: panelShadows ?? this.panelShadows,
arrowShape: arrowShape ?? this.arrowShape,
arrowBaseWidth: arrowBaseWidth ?? this.arrowBaseWidth,
arrowCornerRadius: arrowCornerRadius ?? this.arrowCornerRadius,
arrowTipGap: arrowTipGap ?? this.arrowTipGap,
arrowMaxLength: arrowMaxLength ?? this.arrowMaxLength,
arrowTipRoundness: arrowTipRoundness ?? this.arrowTipRoundness,
showDuration: showDuration ?? this.showDuration,
hideDuration: hideDuration ?? this.hideDuration,
iconColor: iconColor ?? this.iconColor,
destructiveColor: destructiveColor ?? this.destructiveColor,
hoverColor: hoverColor ?? this.hoverColor,
arrowColor: arrowColor ?? this.arrowColor,
);