copyWith method
MdTable
copyWith({
- TextStyle? table,
- TextStyle? tableHead,
- TextStyle? tableBody,
- TableBorder? tableBorder,
- BoxDecoration? tableRowDecoration,
- MarkdownAlternating? tableRowDecorationAlternating,
- EdgeInsets? tableCellPadding,
- TableColumnWidth? tableColumnWidth,
override
Creates a copy of this spec with the given fields replaced by the non-null parameter values.
Implementation
@override
MdTable copyWith({
TextStyle? table,
TextStyle? tableHead,
TextStyle? tableBody,
TableBorder? tableBorder,
BoxDecoration? tableRowDecoration,
MarkdownAlternating? tableRowDecorationAlternating,
EdgeInsets? tableCellPadding,
TableColumnWidth? tableColumnWidth,
}) {
return MdTable(
table: table ?? this.table,
tableHead: tableHead ?? this.tableHead,
tableBody: tableBody ?? this.tableBody,
tableBorder: tableBorder ?? this.tableBorder,
tableRowDecoration: tableRowDecoration ?? this.tableRowDecoration,
tableRowDecorationAlternating:
tableRowDecorationAlternating ?? this.tableRowDecorationAlternating,
tableCellPadding: tableCellPadding ?? this.tableCellPadding,
tableColumnWidth: tableColumnWidth ?? this.tableColumnWidth,
);
}