Avatar
A circular avatar for a person or entity: the caller's image when provided, otherwise the initials derived from name on a tinted circle.
Initials take the first letter of the first and last words of name (one letter for a single word), skipping digits and punctuation. When name yields no letters and there is no image, the tinted circle renders empty.
The avatar is one accessibility node with an image role, announced as contentDescription. Pass null for a decorative avatar beside text that already names the person, such as a list row's leading avatar, so the name is not read twice.
Parameters
the display name, used for the initials.
the avatar diameter.
optional image content, for example a CachedAsyncImage with ContentScale.Crop. It is clipped to the circle and sized to fill it.
the spoken name; defaults to name. null or blank makes the avatar decorative.