getThreadsLimit property

Future<int> getThreadsLimit

Retrieves the threads limit.

Returns a Future that completes with an integer representing the threads limit.

Example usage:

int threadsLimit = await _barkoder.getThreadsLimit;
print('Threads limit: $threadsLimit');

Implementation

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

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