lerp method

Linearly interpolate between two GalleryHeader themes.

All the properties must be non-null.

Implementation

StreamGalleryHeaderThemeData lerp(
  StreamGalleryHeaderThemeData a,
  StreamGalleryHeaderThemeData b,
  double t,
) {
  return StreamGalleryHeaderThemeData(
    closeButtonColor: Color.lerp(a.closeButtonColor, b.closeButtonColor, t),
    backgroundColor: Color.lerp(a.backgroundColor, b.backgroundColor, t),
    iconMenuPointColor:
        Color.lerp(a.iconMenuPointColor, b.iconMenuPointColor, t),
    titleTextStyle: TextStyle.lerp(a.titleTextStyle, b.titleTextStyle, t),
    subtitleTextStyle:
        TextStyle.lerp(a.subtitleTextStyle, b.subtitleTextStyle, t),
    bottomSheetBarrierColor:
        Color.lerp(a.bottomSheetBarrierColor, b.bottomSheetBarrierColor, t),
  );
}