lerp static method
- @Deprecated("'PushButton' no longer uses singular colors and therefore cannot " "be themed using a 'PushButtonTheme'.")
Linearly interpolate between two PushButtonThemeData.
All the properties must be non-null.
Implementation
@Deprecated(
"'PushButton' no longer uses singular colors and therefore cannot "
"be themed using a 'PushButtonTheme'.")
static PushButtonThemeData lerp(
PushButtonThemeData a,
PushButtonThemeData b,
double t,
) {
return PushButtonThemeData(
color: Color.lerp(a.color, b.color, t),
disabledColor: Color.lerp(a.disabledColor, b.disabledColor, t),
secondaryColor: Color.lerp(a.secondaryColor, b.secondaryColor, t),
);
}