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