orientation property
The orientation of the media (e.g., whether the device is in landscape or portrait mode).
Implementation
Orientation get orientation {
return size.width > size.height ? Orientation.landscape : Orientation.portrait;
}
The orientation of the media (e.g., whether the device is in landscape or portrait mode).
Orientation get orientation {
return size.width > size.height ? Orientation.landscape : Orientation.portrait;
}