isLocationInImageResultEnabled property

Future<bool> isLocationInImageResultEnabled

Checks if location in image result is enabled.

Returns a Future that completes with a boolean indicating whether location in image result is enabled.

Example usage:

bool locationInImageResultEnabled = await _barkoder.isLocationInImageResultEnabled;
print('Location in image result enabled: $locationInImageResultEnabled');

Implementation

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

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