lerp static method

Linearly interpolate between two styles.

Implementation

static PdfScrollStatusStyle? lerp(
  PdfScrollStatusStyle? a,
  PdfScrollStatusStyle? b,
  double t,
) {
  if (a == null && b == null) {
    return null;
  }
  return PdfScrollStatusStyle(
    backgroundColor: Color.lerp(a!.backgroundColor, b!.backgroundColor, t),
    pageInfoTextStyle: TextStyle.lerp(
      a.pageInfoTextStyle,
      b.pageInfoTextStyle,
      t,
    ),
  );
}