isPortrait static method
True when the screen is taller than wide.
Implementation
static bool isPortrait() => MediaQuery.of(navigatorKey.currentContext!).orientation == Orientation.portrait;
True when the screen is taller than wide.
static bool isPortrait() => MediaQuery.of(navigatorKey.currentContext!).orientation == Orientation.portrait;