setLicense method

Future<int> setLicense(
  1. String license
)

Set license key.

Implementation

Future<int> setLicense(String license) async {
  try {
    BarcodeReader.license = license;
  } catch (e) {
    print(e);
    return -1;
  }

  return 0;
}