setLicense method

Future<int> setLicense(
  1. String license
)

Sets the license key for the barcode SDK.

A valid license is required to use barcode detection features.

Returns 0 on success, or an error code on failure.

Implementation

Future<int> setLicense(String license) async {
  return await _barcodeManager.setLicense(license);
}