isMobile static method

bool isMobile()

Implementation

static bool isMobile() {
  BuildContext? context = OdinApp.get().getNavigatorKey().currentContext;

  return MediaQuery.of(context!).size.width < 768;
}