lerp static method

WidgetStateProperty<BorderSide?>? lerp(
  1. WidgetStateProperty<BorderSide?>? a,
  2. WidgetStateProperty<BorderSide?>? b,
  3. double t
)
override

Linearly interpolate between two WidgetStatePropertys of BorderSide.

Implementation

static WidgetStateProperty<BorderSide?>? lerp(
  WidgetStateProperty<BorderSide?>? a,
  WidgetStateProperty<BorderSide?>? b,
  double t,
) {
  // Avoid creating a _LerpSides object for a common case.
  if (a == null && b == null) {
    return null;
  }
  return _LerpSides(a, b, t);
}