isPortrait method

bool isPortrait(
  1. BuildContext context
)

Implementation

bool isPortrait(BuildContext context) {
  return MediaQuery.of(context).orientation == Orientation.portrait;
}