getType method
Implementation
DeviceProxyType getType(BuildContext context, Orientation orientation) {
final size = MediaQuery.of(context).size.shortestSide;
return size > threshold ? DeviceProxyType.tablet : DeviceProxyType.mobile;
}
DeviceProxyType getType(BuildContext context, Orientation orientation) {
final size = MediaQuery.of(context).size.shortestSide;
return size > threshold ? DeviceProxyType.tablet : DeviceProxyType.mobile;
}