lerp static method

Linearly interpolate between two themes.

Implementation

static PullDownMenuRouteTheme lerp(
  PullDownMenuRouteTheme? a,
  PullDownMenuRouteTheme? b,
  double t,
) {
  if (identical(a, b) && a != null) return a;

  return PullDownMenuRouteTheme(
    backgroundColor: Color.lerp(a?.backgroundColor, b?.backgroundColor, t),
    borderRadius: BorderRadius.lerp(a?.borderRadius, b?.borderRadius, t),
    beginShadow: BoxShadow.lerp(a?.beginShadow, b?.beginShadow, t),
    endShadow: BoxShadow.lerp(a?.endShadow, b?.endShadow, t),
    width: ui.lerpDouble(a?.width, b?.width, t),
  );
}