isTv static method

bool isTv(
  1. BuildContext context
)

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

Implementation

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