copyWith method
ShadContextMenuTheme
copyWith({
- Duration? popoverReverseDuration,
- BoxConstraints? constraints,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? leadingPadding,
- EdgeInsetsGeometry? trailingPadding,
- EdgeInsetsGeometry? itemPadding,
- EdgeInsetsGeometry? insetPadding,
- ShadAnchorBase? anchor,
- Duration? showDelay,
- double? height,
- ShadButtonVariant? buttonVariant,
- ShadDecoration? itemDecoration,
- TextStyle? textStyle,
- TextStyle? trailingTextStyle,
- BoxConstraints? itemConstraints,
- EdgeInsetsGeometry? subMenuPadding,
- Color? backgroundColor,
- Color? selectedBackgroundColor,
- bool? closeOnTap,
- List<
Effect> ? effects, - List<
BoxShadow> ? shadows, - ShadDecoration? decoration,
- ImageFilter? filter,
inherited
Implementation
ShadContextMenuTheme copyWith({
Duration? popoverReverseDuration,
BoxConstraints? constraints,
EdgeInsetsGeometry? padding,
EdgeInsetsGeometry? leadingPadding,
EdgeInsetsGeometry? trailingPadding,
EdgeInsetsGeometry? itemPadding,
EdgeInsetsGeometry? insetPadding,
ShadAnchorBase? anchor,
Duration? showDelay,
double? height,
ShadButtonVariant? buttonVariant,
ShadDecoration? itemDecoration,
TextStyle? textStyle,
TextStyle? trailingTextStyle,
BoxConstraints? itemConstraints,
EdgeInsetsGeometry? subMenuPadding,
Color? backgroundColor,
Color? selectedBackgroundColor,
bool? closeOnTap,
List<Effect<dynamic>>? effects,
List<BoxShadow>? shadows,
ShadDecoration? decoration,
ImageFilter? filter,
}) {
final _this = (this as ShadContextMenuTheme);
return ShadContextMenuTheme(
popoverReverseDuration:
popoverReverseDuration ?? _this.popoverReverseDuration,
constraints: constraints ?? _this.constraints,
padding: padding ?? _this.padding,
leadingPadding: leadingPadding ?? _this.leadingPadding,
trailingPadding: trailingPadding ?? _this.trailingPadding,
itemPadding: itemPadding ?? _this.itemPadding,
insetPadding: insetPadding ?? _this.insetPadding,
anchor: anchor ?? _this.anchor,
showDelay: showDelay ?? _this.showDelay,
height: height ?? _this.height,
buttonVariant: buttonVariant ?? _this.buttonVariant,
itemDecoration: itemDecoration ?? _this.itemDecoration,
textStyle: textStyle ?? _this.textStyle,
trailingTextStyle: trailingTextStyle ?? _this.trailingTextStyle,
itemConstraints: itemConstraints ?? _this.itemConstraints,
subMenuPadding: subMenuPadding ?? _this.subMenuPadding,
backgroundColor: backgroundColor ?? _this.backgroundColor,
selectedBackgroundColor:
selectedBackgroundColor ?? _this.selectedBackgroundColor,
closeOnTap: closeOnTap ?? _this.closeOnTap,
effects: effects ?? _this.effects,
shadows: shadows ?? _this.shadows,
decoration: decoration ?? _this.decoration,
filter: filter ?? _this.filter,
);
}