lerp method Null safety

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

Linearly interpolate between two text button themes.

Implementation

static TextButtonThemeData? lerp(TextButtonThemeData? a, TextButtonThemeData? b, double t) {
  assert (t != null);
  if (a == null && b == null) {
    return null;
  }
  return TextButtonThemeData(
    style: ButtonStyle.lerp(a?.style, b?.style, t),
  );
}