lerp static method
Linearly interpolate between two styles.
Implementation
static PdfScrollHeadStyle? lerp(
PdfScrollHeadStyle? a, PdfScrollHeadStyle? b, double t) {
if (a == null && b == null) {
return null;
}
return PdfScrollHeadStyle(
backgroundColor: Color.lerp(a!.backgroundColor, b!.backgroundColor, t),
pageNumberTextStyle:
TextStyle.lerp(a.pageNumberTextStyle, b.pageNumberTextStyle, t));
}