isWatch static method
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;
}
Returns isWatch for the nearest DeviceQuery ancestor or false, if no such ancestor exists.
static bool isWatch(BuildContext context) {
return DeviceQuery.maybeOf(context)?.isWatch ?? false;
}