mergeWith method

SidebarXTheme mergeWith(
  1. SidebarXTheme theme
)

Merges two themes together

Implementation

SidebarXTheme mergeWith(
  SidebarXTheme theme,
) {
  return SidebarXTheme(
    width: width,
    height: height,
    padding: padding,
    margin: margin,
    itemTextPadding: itemTextPadding ?? theme.itemTextPadding,
    selectedItemTextPadding:
        selectedItemTextPadding ?? theme.selectedItemTextPadding,
    decoration: decoration ?? theme.decoration,
    iconTheme: iconTheme ?? theme.iconTheme,
    selectedIconTheme: selectedIconTheme ?? theme.selectedIconTheme,
    textStyle: textStyle ?? theme.textStyle,
    selectedTextStyle: selectedTextStyle ?? theme.selectedTextStyle,
    itemMargin: itemMargin ?? theme.itemMargin,
    selectedItemMargin: selectedItemMargin ?? theme.selectedItemMargin,
    itemPadding: itemPadding ?? theme.itemPadding,
    selectedItemPadding: selectedItemPadding ?? theme.selectedItemPadding,
    itemDecoration: itemDecoration ?? theme.itemDecoration,
    selectedItemDecoration:
        selectedItemDecoration ?? theme.selectedItemDecoration,
    hoverColor: hoverColor ?? theme.hoverColor,
    hoverTextStyle: hoverTextStyle ?? theme.hoverTextStyle,
    hoverIconTheme: hoverIconTheme ?? theme.hoverIconTheme,
  );
}