StreamUserAvatar constructor
const
StreamUserAvatar({
- Key? key,
- required User user,
- BoxConstraints? constraints,
- BoxConstraints? onlineIndicatorConstraints,
- OnUserAvatarPress? onTap,
- OnUserAvatarPress? onLongPress,
- bool showOnlineStatus = true,
- BorderRadius? borderRadius,
- Alignment onlineIndicatorAlignment = Alignment.topRight,
- bool selected = false,
- Color? selectionColor,
- double selectionThickness = 4,
- PlaceholderUserImage? placeholder,
Displays a user's avatar.
Implementation
const StreamUserAvatar({
super.key,
required this.user,
this.constraints,
this.onlineIndicatorConstraints,
this.onTap,
this.onLongPress,
this.showOnlineStatus = true,
this.borderRadius,
this.onlineIndicatorAlignment = Alignment.topRight,
this.selected = false,
this.selectionColor,
this.selectionThickness = 4,
this.placeholder,
});