onDisplayModeChanged property

ValueChanged<PaneDisplayMode>? onDisplayModeChanged
final

Called when the display mode changes.

This is called when the user clicks on the pane toggle button, or when the display mode is set to PaneDisplayMode.auto and the window size changes.

If the display mode is set to compact, this listens to changes on the toggle button and resizes. If the pane is closed, PaneDisplayMode.compact is returned. If the pane is open, PaneDisplayMode.open is returned.

If the display mode is set to minimal, this is called when the pane is opened or closed. If the pane is closed, PaneDisplayMode.minimal is returned. If the pane is open, PaneDisplayMode.open is returned.

Implementation

final ValueChanged<PaneDisplayMode>? onDisplayModeChanged;