copyWith method

ShadContextMenuTheme copyWith({
  1. Duration? popoverReverseDuration,
  2. BoxConstraints? constraints,
  3. EdgeInsetsGeometry? padding,
  4. EdgeInsetsGeometry? leadingPadding,
  5. EdgeInsetsGeometry? trailingPadding,
  6. EdgeInsetsGeometry? itemPadding,
  7. EdgeInsetsGeometry? insetPadding,
  8. ShadAnchorBase? anchor,
  9. Duration? showDelay,
  10. double? height,
  11. ShadButtonVariant? buttonVariant,
  12. ShadDecoration? itemDecoration,
  13. TextStyle? textStyle,
  14. TextStyle? trailingTextStyle,
  15. BoxConstraints? itemConstraints,
  16. EdgeInsetsGeometry? subMenuPadding,
  17. Color? backgroundColor,
  18. Color? selectedBackgroundColor,
  19. bool? closeOnTap,
  20. List<Effect>? effects,
  21. List<BoxShadow>? shadows,
  22. ShadDecoration? decoration,
  23. 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,
  );
}