lerp method

  1. @override
AgentConversationSpec lerp(
  1. covariant AgentConversationSpec? other,
  2. double t
)
inherited

Linearly interpolates with another Spec object.

Implementation

@override
AgentConversationSpec lerp(AgentConversationSpec? other, double t) {
  return AgentConversationSpec(
    container: container.lerp(other?.container, t),
    turn: turn.lerp(other?.turn, t),
    maxWidth: MixOps.lerp(maxWidth, other?.maxWidth, t),
    padding: MixOps.lerp(padding, other?.padding, t),
    turnSpacing: MixOps.lerp(turnSpacing, other?.turnSpacing, t),
    blockSpacing: MixOps.lerp(blockSpacing, other?.blockSpacing, t),
    latest: latest.lerp(other?.latest, t),
    empty: empty.lerp(other?.empty, t),
  );
}