lerp method

Linearly interpolate between two UserAvatar themes.

All the properties must be non-null.

Implementation

AvatarThemeData lerp(
  AvatarThemeData a,
  AvatarThemeData b,
  double t,
) =>
    AvatarThemeData(
      borderRadius: BorderRadius.lerp(a.borderRadius, b.borderRadius, t),
      constraints: BoxConstraints.lerp(a.constraints, b.constraints, t),
    );