lerp static method
Implementation
static ZeroAppBarStyle lerp(
ZeroAppBarStyle? a, ZeroAppBarStyle? b, double t) {
return ZeroAppBarStyle(
backgroundColor: Color.lerp(a?.backgroundColor, b?.backgroundColor, t),
foregroundColor: Color.lerp(a?.foregroundColor, b?.foregroundColor, t),
height: t < 0.5 ? a?.height : b?.height,
titleStyle: TextStyle.lerp(a?.titleStyle, b?.titleStyle, t),
centerTitle: t < 0.5 ? a?.centerTitle : b?.centerTitle,
statusBarBrightness:
t < 0.5 ? a?.statusBarBrightness : b?.statusBarBrightness,
elevation: t < 0.5 ? a?.elevation : b?.elevation,
shadowColor: Color.lerp(a?.shadowColor, b?.shadowColor, t),
titleSpacing: t < 0.5 ? a?.titleSpacing : b?.titleSpacing,
);
}