CourierInbox constructor
CourierInbox({
- Key? key,
- bool keepAlive = false,
- CourierInboxTheme? lightTheme,
- CourierInboxTheme? darkTheme,
- ScrollController? feedScrollController,
- ScrollController? archivedScrollController,
- dynamic onMessageClick()?,
- dynamic onMessageLongPress()?,
- dynamic onActionClick()?,
- String onError()?,
- bool canSwipePages = false,
Implementation
CourierInbox({
super.key,
this.keepAlive = false,
this.showCourierFooter = true,
CourierInboxTheme? lightTheme,
CourierInboxTheme? darkTheme,
ScrollController? feedScrollController,
ScrollController? archivedScrollController,
this.onMessageClick,
this.onMessageLongPress,
this.onActionClick,
this.onError,
this.canSwipePages = false,
}) : _lightTheme = lightTheme ?? CourierInboxTheme(),
_darkTheme = darkTheme ?? CourierInboxTheme(),
feedScrollController = feedScrollController ?? ScrollController(),
archivedScrollController = archivedScrollController ?? ScrollController();