isRegionOfInterestVisible property

Future<bool> isRegionOfInterestVisible

Checks if the region of interest (ROI) is visible.

Returns a Future that completes with a boolean indicating whether the ROI is visible.

Example usage:

bool roiVisible = await _barkoder.isRegionOfInterestVisible;
print('Region of interest visible: $roiVisible');

Implementation

Future<bool> get isRegionOfInterestVisible async {
  if (_isBarkoderViewNotMounted) {
    return Future.error(PlatformException(
        code: BarkoderErrors.barkoderViewNotMounted,
        message: BarkoderErrors.barkodeViewNotMountedDesc));
  }

  return await _methodChannel.invokeMethod('isRegionOfInterestVisible');
}