lerp static method

Implementation

static RulerThemeData lerp(RulerThemeData? a, RulerThemeData? b, double t) {
  return RulerThemeData(
    numberSide: t < 0.5 ? a?.numberSide : b?.numberSide,
    notchSide: t < 0.5 ? a?.notchSide : b?.notchSide,
    numberTextStyle:
        TextStyle.lerp(a?.numberTextStyle, b?.numberTextStyle, t),
    notchColor: Color.lerp(a?.notchColor, b?.notchColor, t),
    notchScaleFactor: lerpDouble(a?.notchScaleFactor, b?.notchScaleFactor, t),
    showBase: t < 0.5 ? a?.showBase : b?.showBase,
    numberSpacing: lerpDouble(a?.numberSpacing, b?.numberSpacing, t),
    thickness: lerpDouble(a?.thickness, b?.thickness, t),
  );
}