InboxCard constructor

const InboxCard({
  1. Key? key,
  2. required String senderName,
  3. required String preview,
  4. required String timestamp,
  5. String? avatarUrl,
  6. String? avatarInitials,
  7. Color? avatarColor,
  8. bool isUnread = false,
  9. int unreadCount = 0,
  10. bool isPinned = false,
  11. VoidCallback? onTap,
  12. VoidCallback? onArchive,
  13. VoidCallback? onDelete,
  14. String? subject,
})

Implementation

const InboxCard({
  super.key,
  required this.senderName,
  required this.preview,
  required this.timestamp,
  this.avatarUrl,
  this.avatarInitials,
  this.avatarColor,
  this.isUnread = false,
  this.unreadCount = 0,
  this.isPinned = false,
  this.onTap,
  this.onArchive,
  this.onDelete,
  this.subject,
});