isImageResultEnabled property

Future<bool> isImageResultEnabled

Checks if image result is enabled.

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

Example usage:

bool imageResultEnabled = await _barkoder.isImageResultEnabled;
print('Image result enabled: $imageResultEnabled');

Implementation

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

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