merge method

  1. @override
MdTableDto merge(
  1. covariant MdTableDto? other
)
override

Implementation

@override
MdTableDto merge(MdTableDto? other) {
  return MdTableDto(
    textStyle: textStyle?.merge(other?.textStyle) ?? other?.textStyle,
    head: head?.merge(other?.head) ?? other?.head,
    body: body?.merge(other?.body) ?? other?.body,
    border: other?.border ?? border,
    rowDecoration: (rowDecoration?.merge(other?.rowDecoration) ??
        other?.rowDecoration) as BoxDecorationDto?,
    rowDecorationAlternating:
        other?.rowDecorationAlternating ?? rowDecorationAlternating,
    cellPadding: cellPadding?.merge(other?.cellPadding) ?? other?.cellPadding,
    columnWidth: other?.columnWidth ?? columnWidth,
  );
}