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