copyWith method

USideMenuTheme copyWith({
  1. double? expandedWidth,
  2. double? railWidth,
  3. Color? backgroundColor,
  4. Gradient? backgroundGradient,
  5. Color? selectedItemColor,
  6. Color? hoverColor,
  7. Color? indicatorColor,
  8. Color? selectedTextColor,
  9. Color? unselectedTextColor,
  10. Color? selectedIconColor,
  11. Color? unselectedIconColor,
  12. TextStyle? itemTextStyle,
  13. TextStyle? headerTextStyle,
  14. double? iconSize,
  15. double? itemHeight,
  16. double? itemSpacing,
  17. EdgeInsets? itemPadding,
  18. BorderRadius? itemRadius,
  19. USideMenuIndicatorStyle? indicatorStyle,
  20. Duration? animationDuration,
  21. Curve? animationCurve,
  22. bool? enableHoverElevation,
  23. List<BoxShadow>? shadow,
  24. Color? scrimColor,
  25. Color? dividerColor,
})

Implementation

USideMenuTheme copyWith({
  double? expandedWidth,
  double? railWidth,
  Color? backgroundColor,
  Gradient? backgroundGradient,
  Color? selectedItemColor,
  Color? hoverColor,
  Color? indicatorColor,
  Color? selectedTextColor,
  Color? unselectedTextColor,
  Color? selectedIconColor,
  Color? unselectedIconColor,
  TextStyle? itemTextStyle,
  TextStyle? headerTextStyle,
  double? iconSize,
  double? itemHeight,
  double? itemSpacing,
  EdgeInsets? itemPadding,
  BorderRadius? itemRadius,
  USideMenuIndicatorStyle? indicatorStyle,
  Duration? animationDuration,
  Curve? animationCurve,
  bool? enableHoverElevation,
  List<BoxShadow>? shadow,
  Color? scrimColor,
  Color? dividerColor,
}) => USideMenuTheme(
  expandedWidth: expandedWidth ?? this.expandedWidth,
  railWidth: railWidth ?? this.railWidth,
  backgroundColor: backgroundColor ?? this.backgroundColor,
  backgroundGradient: backgroundGradient ?? this.backgroundGradient,
  selectedItemColor: selectedItemColor ?? this.selectedItemColor,
  hoverColor: hoverColor ?? this.hoverColor,
  indicatorColor: indicatorColor ?? this.indicatorColor,
  selectedTextColor: selectedTextColor ?? this.selectedTextColor,
  unselectedTextColor: unselectedTextColor ?? this.unselectedTextColor,
  selectedIconColor: selectedIconColor ?? this.selectedIconColor,
  unselectedIconColor: unselectedIconColor ?? this.unselectedIconColor,
  itemTextStyle: itemTextStyle ?? this.itemTextStyle,
  headerTextStyle: headerTextStyle ?? this.headerTextStyle,
  iconSize: iconSize ?? this.iconSize,
  itemHeight: itemHeight ?? this.itemHeight,
  itemSpacing: itemSpacing ?? this.itemSpacing,
  itemPadding: itemPadding ?? this.itemPadding,
  itemRadius: itemRadius ?? this.itemRadius,
  indicatorStyle: indicatorStyle ?? this.indicatorStyle,
  animationDuration: animationDuration ?? this.animationDuration,
  animationCurve: animationCurve ?? this.animationCurve,
  enableHoverElevation: enableHoverElevation ?? this.enableHoverElevation,
  shadow: shadow ?? this.shadow,
  scrimColor: scrimColor ?? this.scrimColor,
  dividerColor: dividerColor ?? this.dividerColor,
);