isLandscape method
Returns true if the orientation is portrait.
Implementation
bool isLandscape() {
return [
NativeDeviceOrientation.landscapeLeft,
NativeDeviceOrientation.landscapeRight
].contains(this);
}
Returns true if the orientation is portrait.
bool isLandscape() {
return [
NativeDeviceOrientation.landscapeLeft,
NativeDeviceOrientation.landscapeRight
].contains(this);
}