lerp method

Linearly interpolate between two MessageListView themes.

All the properties must be non-null.

Implementation

StreamMessageListViewThemeData lerp(
  StreamMessageListViewThemeData a,
  StreamMessageListViewThemeData b,
  double t,
) {
  return StreamMessageListViewThemeData(
    backgroundColor: Color.lerp(a.backgroundColor, b.backgroundColor, t),
    backgroundImage: t < 0.5 ? a.backgroundImage : b.backgroundImage,
  );
}