resolveCLNavMode function

CLNavMode resolveCLNavMode(
  1. double width,
  2. CLShellConfig config
)

Larghezza → modalità navigazione.

Implementation

CLNavMode resolveCLNavMode(double width, CLShellConfig config) {
  if (width >= config.desktopBreakpoint) return CLNavMode.sidebar;
  if (width >= config.tabletBreakpoint) return CLNavMode.rail;
  return CLNavMode.bottomBar;
}