NotificationTile constructor

const NotificationTile({
  1. Key? key,
  2. required InboxNotification notification,
  3. dynamic onMarkAsRead(
    1. String notificationId
    )?,
  4. dynamic onMarkAsArchived(
    1. String notificationId
    )?,
  5. dynamic onMarkAsUnArchived(
    1. String notificationId
    )?,
  6. dynamic onTap(
    1. InboxNotification notification
    )?,
  7. Widget renderNotification(
    1. InboxNotification notification
    )?,
  8. Widget renderAvatar(
    1. InboxNotification notification
    )?,
  9. Widget renderSubject(
    1. InboxNotification notification
    )?,
  10. Widget renderBody(
    1. InboxNotification notification
    )?,
  11. dynamic onNotificationTap(
    1. InboxNotification notification
    )?,
  12. dynamic onPrimaryActionTap(
    1. InboxNotification notification
    )?,
  13. dynamic onSecondaryActionTap(
    1. InboxNotification notification
    )?,
})

Implementation

const NotificationTile({
  super.key,
  required this.notification,
  this.onMarkAsRead,
  this.onMarkAsArchived,
  this.onMarkAsUnArchived,
  this.onTap,
  this.renderNotification,
  this.renderAvatar,
  this.renderSubject,
  this.renderBody,
  this.onNotificationTap,
  this.onPrimaryActionTap,
  this.onSecondaryActionTap,
});