lerp static method
Linearly interpolate between two styles.
Implementation
static PdfHyperlinkDialogStyle? lerp(
PdfHyperlinkDialogStyle? a, PdfHyperlinkDialogStyle? b, double t) {
if (a == null && b == null) {
return null;
}
return PdfHyperlinkDialogStyle(
backgroundColor: Color.lerp(a!.backgroundColor, b!.backgroundColor, t),
headerTextStyle:
TextStyle.lerp(a.headerTextStyle, b.headerTextStyle, t),
contentTextStyle:
TextStyle.lerp(a.contentTextStyle, b.contentTextStyle, t),
openTextStyle: TextStyle.lerp(a.openTextStyle, b.openTextStyle, t),
cancelTextStyle:
TextStyle.lerp(a.cancelTextStyle, b.cancelTextStyle, t),
closeIconColor: Color.lerp(a.closeIconColor, b.closeIconColor, t));
}