isPinchToZoomEnabled property
Checks if pinch to zoom is enabled.
Returns a Future that completes with a boolean indicating whether pinch to zoom is enabled.
Example usage:
bool pinchToZoomEnabled = await _barkoder.isPinchToZoomEnabled;
print('Pinch to zoom enabled: $pinchToZoomEnabled');
Implementation
Future<bool> get isPinchToZoomEnabled async {
if (_isBarkoderViewNotMounted) {
return Future.error(PlatformException(
code: BarkoderErrors.barkoderViewNotMounted,
message: BarkoderErrors.barkodeViewNotMountedDesc));
}
return await _methodChannel.invokeMethod('isPinchToZoomEnabled');
}