of static method

ShellLayout of(
  1. double width
)

Implementation

static ShellLayout of(double width) {
  if (width >= desktop) return ShellLayout.desktop;
  if (width >= tablet) return ShellLayout.tablet;
  return ShellLayout.mobile;
}