lerp method

Linearly interpolate between two GalleryFooter themes.

All the properties must be non-null.

Implementation

StreamGalleryFooterThemeData lerp(
  StreamGalleryFooterThemeData a,
  StreamGalleryFooterThemeData b,
  double t,
) {
  return StreamGalleryFooterThemeData(
    backgroundColor: Color.lerp(a.backgroundColor, b.backgroundColor, t),
    shareIconColor: Color.lerp(a.shareIconColor, b.shareIconColor, t),
    titleTextStyle: TextStyle.lerp(a.titleTextStyle, b.titleTextStyle, t),
    gridIconButtonColor:
        Color.lerp(a.gridIconButtonColor, b.gridIconButtonColor, t),
    bottomSheetBarrierColor:
        Color.lerp(a.bottomSheetBarrierColor, b.bottomSheetBarrierColor, t),
    bottomSheetBackgroundColor: Color.lerp(
      a.bottomSheetBackgroundColor,
      b.bottomSheetBackgroundColor,
      t,
    ),
    bottomSheetPhotosTextStyle: TextStyle.lerp(
      a.bottomSheetPhotosTextStyle,
      b.bottomSheetPhotosTextStyle,
      t,
    ),
    bottomSheetCloseIconColor: Color.lerp(
      a.bottomSheetCloseIconColor,
      b.bottomSheetCloseIconColor,
      t,
    ),
  );
}