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