Overview
Presentum providesInheritedPresentumItem to pass presentation items down the widget tree without prop drilling.
Outlets automatically wrap your builder widgets with InheritedPresentumItem, giving all descendant widgets access to the current item.
Automatic wrapping
When you create an outlet:Accessing the item
Descendants can access the item via context:Benefits
No prop drilling
Before (manual passing):Cleaner component APIs
Components donβt need to know about Presentum items:Custom observer widgets
If you build custom widgets that observe Presentum state (not usingPresentumOutlet), you must wrap descendants manually:
Alternative: Explicit props
If you prefer explicit props over inherited widgets, pass items manually:InheritedPresentum vs InheritedPresentumItem
Presentum provides two inherited widgets:- InheritedPresentum
- InheritedPresentumItem
Provides the Used for: Calling
Presentum controller instance.markShown, markDismissed, markConverted, etc.Extension methods
Presentum provides convenient extension methods:watchPresentumItem to rebuild when the item changes:
Next steps
Outlets
Learn about outlet widgets
Build context extension
API reference