UserAvatar constructor
const
UserAvatar({
- Key? key,
- required User user,
- BoxConstraints? constraints,
- BoxConstraints? onlineIndicatorConstraints,
- void onTap()?,
- void onLongPress()?,
- bool showOnlineStatus = true,
- BorderRadius? borderRadius,
- Alignment onlineIndicatorAlignment = Alignment.topRight,
- bool selected = false,
- Color? selectionColor,
- double selectionThickness = 4,
- Widget placeholder()?,
Constructor to create a UserAvatar
Implementation
const UserAvatar({
Key? 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,
}) : super(key: key);