merge method
Merges the current VitTableStyle with another, prioritizing non-null values from the other instance.
Implementation
VitTableStyle merge(VitTableStyle other) {
return VitTableStyle(
height: other.height ?? height,
minHeight: other.minHeight ?? minHeight,
header: header?.merge(other.header) ?? other.header,
row: other.row != null ? (row?.merge(other.row!) ?? other.row) : row,
innerBottom: other.innerBottom ?? innerBottom,
onEmptyWidget: other.onEmptyWidget ?? onEmptyWidget,
scrollbarBuilder: other.scrollbarBuilder ?? scrollbarBuilder,
decoration: other.decoration ?? decoration,
pageNavigatorThemeData:
pageNavigatorThemeData.merge(other.pageNavigatorThemeData),
);
}