isTablet static method

bool isTablet(
  1. BuildContext context
)

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;
}