isLandscape function

bool isLandscape(
  1. BuildContext context
)

Implementation

bool isLandscape(BuildContext context) {
  if (MediaQuery.of(context).orientation == Orientation.landscape) {
    return true;
  } else {
    return false;
  }
}