lerp method

Linearly interpolate from one MessageInputThemeData to another.

Implementation

MessageInputThemeData lerp(
  MessageInputThemeData a,
  MessageInputThemeData b,
  double t,
) =>
    MessageInputThemeData(
      actionButtonColor:
          Color.lerp(a.actionButtonColor, b.actionButtonColor, t),
      actionButtonIdleColor:
          Color.lerp(a.actionButtonIdleColor, b.actionButtonIdleColor, t),
      activeBorderGradient:
          Gradient.lerp(a.activeBorderGradient, b.activeBorderGradient, t),
      borderRadius: BorderRadius.lerp(a.borderRadius, b.borderRadius, t),
      expandButtonColor:
          Color.lerp(a.expandButtonColor, b.expandButtonColor, t),
      idleBorderGradient:
          Gradient.lerp(a.idleBorderGradient, b.idleBorderGradient, t),
      inputBackgroundColor:
          Color.lerp(a.inputBackgroundColor, b.inputBackgroundColor, t),
      inputTextStyle: TextStyle.lerp(a.inputTextStyle, b.inputTextStyle, t),
      sendButtonColor: Color.lerp(a.sendButtonColor, b.sendButtonColor, t),
      sendButtonIdleColor:
          Color.lerp(a.sendButtonIdleColor, b.sendButtonIdleColor, t),
      sendAnimationDuration: a.sendAnimationDuration,
      inputDecoration: a.inputDecoration,
    );