getMaximumResultsCount property

Future<double> getMaximumResultsCount

Retrieves the maximum number of results to be returned from barcode scanning at once.

Returns a Future that completes with a double representing the maximum number of results to be returned.

Example usage:

double maxResults = await _barkoder.getMaximumResultsCount;
print('Maximum results count: $maxResults');

Implementation

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

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