setOnScanned method

void setOnScanned(
  1. dynamic callback(
    1. String
    )
)

Implementation

void setOnScanned(Function(String) callback) {
  log("Setting onScanned callback");
  _onScanned = callback;
}