connect method
Connect to a scanner by ID
scannerId The ID of the scanner to connect to
Returns true if connection was successful, false otherwise
Implementation
@override
Future<bool> connect(int scannerId) async {
if (scannerId <= 0) {
throw ArgumentError('scannerId must be greater than 0');
}
final result = await methodChannel.invokeMethod<bool>('connect', {
'scannerId': scannerId,
});
return result ?? false;
}