lerp static method

MenuThemeData? lerp(
  1. MenuThemeData? a,
  2. MenuThemeData? b,
  3. double t
)

Linearly interpolate between two menu button themes.

Implementation

static MenuThemeData? lerp(MenuThemeData? a, MenuThemeData? b, double t) {
  if (identical(a, b)) {
    return a;
  }
  return MenuThemeData(style: MenuStyle.lerp(a?.style, b?.style, t));
}