connect method

Future<int?> connect(
  1. int? scannerId
)

Connect to a scanner by ID, or to the first available USB device if scannerId is null/empty.

scannerId The ID of the scanner to connect to, or null to auto-select the first available USB device. Returns the connected scanner ID on success, or null if connection failed or no USB device was found.

Implementation

Future<int?> connect(int? scannerId) {
  throw UnimplementedError('connect() has not been implemented.');
}