isTablet static method
Returns isTablet for the nearest DeviceQuery ancestor or false, if no such ancestor exists.
Implementation
static bool isTablet(BuildContext context) {
return DeviceQuery.maybeOf(context)?.isTablet ?? false;
}
Returns isTablet for the nearest DeviceQuery ancestor or false, if no such ancestor exists.
static bool isTablet(BuildContext context) {
return DeviceQuery.maybeOf(context)?.isTablet ?? false;
}