isPhone property
Implementation
static bool get isPhone {
final FlutterView firstView =
WidgetsBinding.instance.platformDispatcher.views.first;
final double logicalShortestSide =
firstView.physicalSize.shortestSide /
firstView.devicePixelRatio;
return logicalShortestSide < 600;
}