ScannerBridge constructor

ScannerBridge({
  1. ScannerHostApi? host,
  2. EventChannel? scans,
})

Creates a bridge with optional injected host and event channel for tests.

Implementation

ScannerBridge({ScannerHostApi? host, EventChannel? scans})
  : _host = host ?? ScannerHostApi(),
    _scans = scans;