menuMode method

MenuMode menuMode(
  1. BuildContext context
)

Implementation

MenuMode menuMode(BuildContext context) {
  final width = MediaQuery.of(context).size.width;

  if (width > minimumThickMenuWidth) {
    return _menuThickness == _MenuThickness.thick
        ? MenuMode.Thick
        : MenuMode.Thin;
  }

  if (width <= minimumMenuWidth) {
    return MenuMode.Drawer;
  }

  return MenuMode.Thin;
}