lerp method
Linearly interpolate with another Spec object.
Implementation
@override
MdTable lerp(
MdTable? other,
double t,
) {
return MdTable(
table: TextStyle.lerp(table, other?.table, t),
tableHead: TextStyle.lerp(tableHead, other?.tableHead, t),
tableBody: TextStyle.lerp(tableBody, other?.tableBody, t),
tableBorder: TableBorder.lerp(tableBorder, other?.tableBorder, t),
tableRowDecoration:
BoxDecoration.lerp(tableRowDecoration, other?.tableRowDecoration, t),
tableRowDecorationAlternating:
tableRowDecorationAlternating ?? other?.tableRowDecorationAlternating,
tableCellPadding:
EdgeInsets.lerp(tableCellPadding, other?.tableCellPadding, t),
tableColumnWidth: t < 0.5 ? tableColumnWidth : other?.tableColumnWidth,
);
}