Fluent2Avatar constructor

const Fluent2Avatar({
  1. String? name,
  2. String? initials,
  3. ImageProvider<Object>? image,
  4. double size = 32,
  5. Fluent2AvatarShape shape = Fluent2AvatarShape.circular,
  6. Fluent2AvatarColor color = Fluent2AvatarColor.neutral,
  7. Fluent2Presence? presence,
  8. bool selected = false,
  9. VoidCallback? onPressed,
  10. String? label,
  11. IconData? icon,
  12. FocusNode? focusNode,
  13. bool autofocus = false,
  14. Fluent2Style? style,
  15. Key? key,
})

An avatar of name: its picture, or its initials.

Implementation

const Fluent2Avatar({
  this.name,
  this.initials,
  this.image,
  this.size = 32,
  this.shape = Fluent2AvatarShape.circular,
  this.color = Fluent2AvatarColor.neutral,
  this.presence,
  this.selected = false,
  this.onPressed,
  this.label,
  this.icon,
  this.focusNode,
  this.autofocus = false,
  this.style,
  super.key,
});