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