Avatar constructor

const Avatar({
  1. Key? key,
  2. required UserID userId,
  3. double? size = 32,
  4. Color? backgroundColor,
  5. Color? foregroundColor,
  6. VoidCallback? onTap,
  7. Map<String, String>? headers,
})

Creates an avatar widget.

Implementation

const Avatar({
  super.key,
  required this.userId,
  this.size = 32,
  this.backgroundColor,
  this.foregroundColor,
  this.onTap,
  this.headers,
});