AvatarHover constructor

AvatarHover({
  1. required GlobalKey<State<StatefulWidget>> widgetKey,
  2. required BuildContext context,
  3. required bool online,
  4. Widget? avatarChild,
  5. bool hoverMenu = false,
  6. String? url,
  7. List<Color> colors = const [],
  8. List<PopupMenuItem>? itemsMenu,
  9. double height = 100,
  10. double width = 100,
  11. double right = 6.8,
  12. double bottom = 6.8,
  13. double statusHeight = 20,
  14. double statusWidth = 20,
})

Implementation

AvatarHover({
  required this.widgetKey,
  required this.context,
  required this.online,
  this.avatarChild,
  this.hoverMenu = false,
  this.url,
  this.colors = const [],
  this.itemsMenu,
  this.height = 100,
  this.width = 100,
  this.right = 6.8,
  this.bottom = 6.8,
  this.statusHeight = 20,
  this.statusWidth = 20,
}) : assert (itemsMenu == null,
  "itemsMenu cannot be null"
);