StreamUserAvatar constructor

const StreamUserAvatar({
  1. Key? key,
  2. required User user,
  3. BoxConstraints? constraints,
  4. BoxConstraints? onlineIndicatorConstraints,
  5. OnUserAvatarPress? onTap,
  6. OnUserAvatarPress? onLongPress,
  7. bool showOnlineStatus = true,
  8. BorderRadius? borderRadius,
  9. Alignment onlineIndicatorAlignment = Alignment.topRight,
  10. bool selected = false,
  11. Color? selectionColor,
  12. double selectionThickness = 4,
  13. 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,
});