copyWith method
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,
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,
);