copyWith method

SidebarXTheme copyWith({
  1. double? width,
  2. double? height,
  3. EdgeInsets? padding,
  4. EdgeInsets? margin,
  5. BoxDecoration? decoration,
  6. IconThemeData? iconTheme,
  7. IconThemeData? selectedIconTheme,
  8. TextStyle? textStyle,
  9. TextStyle? selectedTextStyle,
  10. BoxDecoration? itemDecoration,
  11. BoxDecoration? selectedItemDecoration,
  12. EdgeInsets? itemMargin,
  13. EdgeInsets? selectedItemMargin,
  14. EdgeInsets? itemPadding,
  15. EdgeInsets? selectedItemPadding,
  16. EdgeInsets? itemTextPadding,
  17. EdgeInsets? selectedItemTextPadding,
  18. Color? hoverColor,
  19. TextStyle? hoverTextStyle,
  20. IconThemeData? hoverIconTheme,
})

Defautl copyWith method

Implementation

SidebarXTheme copyWith({
  double? width,
  double? height,
  EdgeInsets? padding,
  EdgeInsets? margin,
  BoxDecoration? decoration,
  IconThemeData? iconTheme,
  IconThemeData? selectedIconTheme,
  TextStyle? textStyle,
  TextStyle? selectedTextStyle,
  BoxDecoration? itemDecoration,
  BoxDecoration? selectedItemDecoration,
  EdgeInsets? itemMargin,
  EdgeInsets? selectedItemMargin,
  EdgeInsets? itemPadding,
  EdgeInsets? selectedItemPadding,
  EdgeInsets? itemTextPadding,
  EdgeInsets? selectedItemTextPadding,
  Color? hoverColor,
  TextStyle? hoverTextStyle,
  IconThemeData? hoverIconTheme,
}) {
  return SidebarXTheme(
    width: width ?? this.width,
    height: height ?? this.height,
    padding: padding ?? this.padding,
    margin: margin ?? this.margin,
    decoration: decoration ?? this.decoration,
    iconTheme: iconTheme ?? this.iconTheme,
    selectedIconTheme: selectedIconTheme ?? this.selectedIconTheme,
    textStyle: textStyle ?? this.textStyle,
    selectedTextStyle: selectedTextStyle ?? this.selectedTextStyle,
    itemDecoration: itemDecoration ?? this.itemDecoration,
    selectedItemDecoration:
        selectedItemDecoration ?? this.selectedItemDecoration,
    itemMargin: itemMargin ?? this.itemMargin,
    selectedItemMargin: selectedItemMargin ?? this.selectedItemMargin,
    itemPadding: itemPadding ?? this.itemPadding,
    selectedItemPadding: selectedItemPadding ?? this.selectedItemPadding,
    itemTextPadding: itemTextPadding ?? this.itemTextPadding,
    selectedItemTextPadding:
        selectedItemTextPadding ?? this.selectedItemTextPadding,
    hoverColor: hoverColor ?? this.hoverColor,
    hoverTextStyle: hoverTextStyle ?? this.hoverTextStyle,
    hoverIconTheme: hoverIconTheme ?? this.hoverIconTheme,
  );
}