isPhone static method

bool isPhone(
  1. BuildContext context
)

Returns isPhone for the nearest DeviceQuery ancestor or false, if no such ancestor exists.

Implementation

static bool isPhone(BuildContext context) {
  return DeviceQuery.maybeOf(context)?.isPhone ?? false;
}