lerp method
Linearly interpolate between two StreamUserAvatarThemeData themes.
All the properties must be non-null.
Implementation
StreamUserAvatarThemeData lerp(StreamUserAvatarThemeData other, double t) {
return StreamUserAvatarThemeData(
borderRadius: BorderRadius.lerp(borderRadius, other.borderRadius, t)!,
constraints: BoxConstraints.lerp(constraints, other.constraints, t)!,
initialsTextStyle:
TextStyle.lerp(initialsTextStyle, other.initialsTextStyle, t)!,
initialsBackground:
Color.lerp(initialsBackground, other.initialsBackground, t),
selectionColor: Color.lerp(selectionColor, other.selectionColor, t)!,
selectionThickness:
lerpDouble(selectionThickness, other.selectionThickness, t)!,
);
}