lerp static method

Linearly interpolate between two themes.

Implementation

static SfPdfViewerThemeData? lerp(
    SfPdfViewerThemeData? a, SfPdfViewerThemeData? b, double t) {
  if (a == null && b == null) {
    return null;
  }
  return SfPdfViewerThemeData(
      backgroundColor: Color.lerp(a!.backgroundColor, b!.backgroundColor, t),
      progressBarColor: Color.lerp(a.progressBarColor, b.progressBarColor, t),
      scrollStatusStyle: PdfScrollStatusStyle.lerp(
          a.scrollStatusStyle, b.scrollStatusStyle, t),
      scrollHeadStyle:
          PdfScrollHeadStyle.lerp(a.scrollHeadStyle, b.scrollHeadStyle, t),
      bookmarkViewStyle: PdfBookmarkViewStyle.lerp(
          a.bookmarkViewStyle, b.bookmarkViewStyle, t),
      paginationDialogStyle: PdfPaginationDialogStyle.lerp(
          a.paginationDialogStyle, b.paginationDialogStyle, t),
      passwordDialogStyle: PdfPasswordDialogStyle.lerp(
          a.passwordDialogStyle, b.passwordDialogStyle, t));
}