isWatch static method

bool isWatch(
  1. BuildContext context
)

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

Implementation

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