lerp method
Linearly interpolate with another Spec object.
Implementation
@override
MdCode lerp(
MdCode? other,
double t,
) {
return MdCode(
codeSpan: TextStyle.lerp(codeSpan, other?.codeSpan, t),
codeblockPadding:
EdgeInsets.lerp(codeblockPadding, other?.codeblockPadding, t),
codeblockDecoration: BoxDecoration.lerp(
codeblockDecoration, other?.codeblockDecoration, t),
copyIconColor: Color.lerp(copyIconColor, other?.copyIconColor, t),
codeBlock: TextStyle.lerp(codeBlock, other?.codeBlock, t),
);
}