isOrientationInLandscapeMode function
Returns true
if device orientation is in Landscape mode.
Implementation
bool isOrientationInLandscapeMode() {
var orientation = window.orientation;
if (orientation == null) return false;
if (orientation == 90 || orientation == -90) {
return true;
} else {
return false;
}
}