lerp static method
- WidgetStateProperty<
BorderSide?> ? a, - WidgetStateProperty<
BorderSide?> ? b, - 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);
}