copyWith method

  1. @override
MdTable copyWith({
  1. TextStyle? table,
  2. TextStyle? tableHead,
  3. TextStyle? tableBody,
  4. TableBorder? tableBorder,
  5. BoxDecoration? tableRowDecoration,
  6. MarkdownAlternating? tableRowDecorationAlternating,
  7. EdgeInsets? tableCellPadding,
  8. 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,
  );
}