orientation static method
Tells you the current orientation of the device
Implementation
static Orientation orientation(BuildContext context) {
return (h(context) > w(context))
? Orientation.portrait
: Orientation.landscape;
}
Tells you the current orientation of the device
static Orientation orientation(BuildContext context) {
return (h(context) > w(context))
? Orientation.portrait
: Orientation.landscape;
}