Inbox constructor

const Inbox({
  1. Key? key,
  2. String backendUrl = 'https://eu.api.novu.co',
  3. String socketUrl = 'https://eu.ws.novu.co',
  4. required String applicationIdentifier,
  5. String? subscriberId,
  6. Widget? icon,
  7. List<InboxTab> tabs = const [],
  8. Map<String, ContextValue>? context,
  9. Subscriber? subscriber,
  10. Widget renderBell(
    1. int unreadCount
    )?,
  11. Widget renderNotification(
    1. InboxNotification notification
    )?,
  12. Widget renderAvatar(
    1. InboxNotification notification
    )?,
  13. Widget renderSubject(
    1. InboxNotification notification
    )?,
  14. Widget renderBody(
    1. InboxNotification notification
    )?,
  15. dynamic onNotificationTap(
    1. InboxNotification notification
    )?,
  16. dynamic onPrimaryActionTap(
    1. InboxNotification notification
    )?,
  17. dynamic onSecondaryActionTap(
    1. InboxNotification notification
    )?,
})

Implementation

const Inbox({super.key,
  this.backendUrl = 'https://eu.api.novu.co',
  this.socketUrl = 'https://eu.ws.novu.co',
  required this.applicationIdentifier,
  this.subscriberId,
  this.icon,
  this.tabs = const [],
  this.context,
  this.subscriber,
  this.renderBell,
  this.renderNotification,
  this.renderAvatar,
  this.renderSubject,
  this.renderBody,
  this.onNotificationTap,
  this.onPrimaryActionTap,
  this.onSecondaryActionTap,
}): assert(subscriberId != null || subscriber != null, 'Subscriber or subscriberId is required!');