hasHingeAngleSensor property
Returns true if the device has a hinge angle sensor.
Returns false if the platform is not supported or if the device does not have a hinge or hinge angle sensor.
Implementation
static Future<bool> get hasHingeAngleSensor async {
try {
return await _hingeInfoMethodChannel
.invokeMethod<bool>('hasHingeAngleSensor') ??
false;
} catch (e) {
return false;
}
}