copyWith method

TMenuTheme copyWith({
  1. Color? defaultColor,
  2. Color? hoverColor,
  3. Color? activeColor,
  4. Color? activeBackgroundColor,
  5. Color? borderColor,
  6. Duration? animationDuration,
  7. Duration? showDelay,
  8. Duration? hideDelay,
  9. TPopupAlignment? alignment,
  10. double? offset,
  11. TPopupAlignment? secondaryAlignment,
  12. double? secondaryOffset,
  13. BoxConstraints? boxConstraints,
  14. double? iconSize,
  15. double? arrowIconSize,
  16. double? gap,
  17. double? overlayElevation,
  18. BorderRadius? overlayBorderRadius,
  19. EdgeInsets? overlayPadding,
  20. EdgeInsets? itemPadding,
  21. BorderRadius? itemBorderRadius,
  22. double? fontSize,
  23. FontWeight? fontWeight,
  24. IconData? arrowIcon,
  25. IconData? dropdownIcon,
  26. IconData? expandIcon,
})

Implementation

TMenuTheme copyWith({
  Color? defaultColor,
  Color? hoverColor,
  Color? activeColor,
  Color? activeBackgroundColor,
  Color? borderColor,
  Duration? animationDuration,
  Duration? showDelay,
  Duration? hideDelay,
  TPopupAlignment? alignment,
  double? offset,
  TPopupAlignment? secondaryAlignment,
  double? secondaryOffset,
  BoxConstraints? boxConstraints,
  double? iconSize,
  double? arrowIconSize,
  double? gap,
  double? overlayElevation,
  BorderRadius? overlayBorderRadius,
  EdgeInsets? overlayPadding,
  EdgeInsets? itemPadding,
  BorderRadius? itemBorderRadius,
  double? fontSize,
  FontWeight? fontWeight,
  IconData? arrowIcon,
  IconData? dropdownIcon,
  IconData? expandIcon,
}) {
  return TMenuTheme(
    defaultColor: defaultColor ?? this.defaultColor,
    hoverColor: hoverColor ?? this.hoverColor,
    activeColor: activeColor ?? this.activeColor,
    activeBackgroundColor: activeBackgroundColor ?? this.activeBackgroundColor,
    borderColor: borderColor ?? this.borderColor,
    animationDuration: animationDuration ?? this.animationDuration,
    showDelay: showDelay ?? this.showDelay,
    hideDelay: hideDelay ?? this.hideDelay,
    alignment: alignment ?? this.alignment,
    offset: offset ?? this.offset,
    secondaryAlignment: secondaryAlignment ?? this.secondaryAlignment,
    secondaryOffset: secondaryOffset ?? this.secondaryOffset,
    boxConstraints: boxConstraints ?? this.boxConstraints,
    iconSize: iconSize ?? this.iconSize,
    arrowIconSize: arrowIconSize ?? this.arrowIconSize,
    gap: gap ?? this.gap,
    overlayElevation: overlayElevation ?? this.overlayElevation,
    overlayBorderRadius: overlayBorderRadius ?? this.overlayBorderRadius,
    overlayPadding: overlayPadding ?? this.overlayPadding,
    itemPadding: itemPadding ?? this.itemPadding,
    itemBorderRadius: itemBorderRadius ?? this.itemBorderRadius,
    fontSize: fontSize ?? this.fontSize,
    fontWeight: fontWeight ?? this.fontWeight,
    arrowIcon: arrowIcon ?? this.arrowIcon,
    dropdownIcon: dropdownIcon ?? this.dropdownIcon,
    expandIcon: expandIcon ?? this.expandIcon,
  );
}