isWeb static method

bool isWeb(
  1. BuildContext context
)

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