Inbox constructor
const
Inbox({
- Key? key,
- String backendUrl = 'https://eu.api.novu.co',
- String socketUrl = 'https://eu.ws.novu.co',
- required String applicationIdentifier,
- String? subscriberId,
- Widget? icon,
- List<
InboxTab> tabs = const [], - Map<
String, ContextValue> ? context, - Subscriber? subscriber,
- Widget renderBell(
- int unreadCount
- Widget renderNotification(
- InboxNotification notification
- Widget renderAvatar(
- InboxNotification notification
- Widget renderSubject(
- InboxNotification notification
- Widget renderBody(
- InboxNotification notification
- dynamic onNotificationTap(
- InboxNotification notification
- dynamic onPrimaryActionTap(
- InboxNotification notification
- dynamic onSecondaryActionTap(
- 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!');