FluentAvatarState class

An avatar's fully resolved state, including the design axes.

Inheritance
Annotations

Constructors

FluentAvatarState({required FluentAvatarActive active, required FluentAvatarColor color, required FluentAvatarSize size, required FluentAvatarShape shape, ImageProvider<Object>? image, String? initials, Widget? icon, Widget? badge, String? semanticLabel})
Creates a resolved state.
const

Properties

active → FluentAvatarActive
Whether the activity ring is drawn, and how.
finalinherited
badge → Widget?
The presence badge, anchored to the bottom-right corner.
finalinherited
color → FluentAvatarColor
Which Avatar color mode to paint in.
final
hashCode → int
The hash code for this object.
no setterinherited
icon → Widget?
The fallback glyph, drawn when there is neither image nor initials.
finalinherited
image → ImageProvider<Object>?
The photo, drawn cover-fit and clipped to the avatar's own radius.
finalinherited
initials → String?
One to three letters, drawn when there is no image.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String?
Announced by assistive technology. Usually the person's name.
finalinherited
shape → FluentAvatarShape
Corner treatment.
final
size → FluentAvatarSize
Edge length.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited