lerp method

Linearly interpolate between two UserAvatar themes.

All the properties must be non-null.

Implementation

StreamAvatarThemeData lerp(
  StreamAvatarThemeData a,
  StreamAvatarThemeData b,
  double t,
) {
  return StreamAvatarThemeData(
    borderRadius: BorderRadius.lerp(a.borderRadius, b.borderRadius, t),
    constraints: BoxConstraints.lerp(a.constraints, b.constraints, t),
  );
}