lerp static method
Linearly interpolate between two styles.
Implementation
static PdfBookmarkViewStyle? lerp(
PdfBookmarkViewStyle? a, PdfBookmarkViewStyle? b, double t) {
if (a == null && b == null) {
return null;
}
return PdfBookmarkViewStyle(
backgroundColor: Color.lerp(a!.backgroundColor, b!.backgroundColor, t),
headerBarColor: Color.lerp(a.headerBarColor, b.headerBarColor, t),
closeIconColor: Color.lerp(a.closeIconColor, b.closeIconColor, t),
backIconColor: Color.lerp(a.backIconColor, b.backIconColor, t),
navigationIconColor:
Color.lerp(a.navigationIconColor, b.navigationIconColor, t),
selectionColor: Color.lerp(a.selectionColor, b.selectionColor, t),
titleSeparatorColor:
Color.lerp(a.titleSeparatorColor, b.titleSeparatorColor, t),
titleTextStyle: TextStyle.lerp(a.titleTextStyle, b.titleTextStyle, t),
headerTextStyle:
TextStyle.lerp(a.headerTextStyle, b.headerTextStyle, t));
}