displayMode property

PaneDisplayMode displayMode

Gets the current display mode. If it's automatic, it'll adapt to the other display modes according to the current available space.

Implementation

PaneDisplayMode get displayMode {
  if (widget.pane?.displayMode == PaneDisplayMode.auto) {
    return _autoDisplayMode ?? PaneDisplayMode.minimal;
  }

  return widget.pane?.displayMode ?? PaneDisplayMode.minimal;
}