lerp method

Linearly interpolate one ChannelPreviewThemeData to another.

Implementation

ChannelPreviewThemeData lerp(
  ChannelPreviewThemeData a,
  ChannelPreviewThemeData b,
  double t,
) =>
    ChannelPreviewThemeData(
      avatarTheme:
          const AvatarThemeData().lerp(a.avatarTheme!, b.avatarTheme!, t),
      indicatorIconSize: a.indicatorIconSize,
      lastMessageAtStyle:
          TextStyle.lerp(a.lastMessageAtStyle, b.lastMessageAtStyle, t),
      subtitleStyle: TextStyle.lerp(a.subtitleStyle, b.subtitleStyle, t),
      titleStyle: TextStyle.lerp(a.titleStyle, b.titleStyle, t),
      unreadCounterColor:
          Color.lerp(a.unreadCounterColor, b.unreadCounterColor, t),
    );