lerp method

  1. @override
MdCode lerp(
  1. covariant MdCode? other,
  2. double t
)
override

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),
  );
}