lerp static method

Implementation

static ZeroSwitchStyle lerp(
    ZeroSwitchStyle? a, ZeroSwitchStyle? b, double t) {
  return ZeroSwitchStyle(
    activeColor: Color.lerp(a?.activeColor, b?.activeColor, t),
    inactiveColor: Color.lerp(a?.inactiveColor, b?.inactiveColor, t),
    activeThumbColor: Color.lerp(a?.activeThumbColor, b?.activeThumbColor, t),
    inactiveThumbColor:
        Color.lerp(a?.inactiveThumbColor, b?.inactiveThumbColor, t),
    thumbSize: t < 0.5 ? a?.thumbSize : b?.thumbSize,
  );
}