lerp method Null safety
- TextButtonThemeData? a,
- TextButtonThemeData? b,
- 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),
);
}