lerp method Null safety

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

Linearly interpolate between two outlined button themes.

Implementation

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