paneBodyBuilder property

NavigationContentBuilder? paneBodyBuilder
final

Can be used to override the widget that is built from the PaneItem.body. Only used if pane is provided. If nothing is selected, body will be null.

This can be useful if you are using router-based navigation, and the body of the navigation pane is dynamically determined or affected by the current route rather than just by the currently selected pane.

If this is not null then this builder will be responsible for state management of the child widget. One way to accomplish this is to use an IndexedStack.

Implementation

final NavigationContentBuilder? paneBodyBuilder;