mergeWith method
Merges two themes together
Implementation
plugintestTheme mergeWith(
plugintestTheme theme,
) {
return plugintestTheme(
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,
);
}