getOrientation static method
Gets the current orientation.
Implementation
static Orientation getOrientation(double width, double height) {
return width > height ? Orientation.landscape : Orientation.portrait;
}
Gets the current orientation.
static Orientation getOrientation(double width, double height) {
return width > height ? Orientation.landscape : Orientation.portrait;
}