connect method
Connect to a printer by device id.
bypassWhitelist (Android only) uses reflection to bypass SDK device
name whitelist check.
Implementation
@override
Future<bool> connect(String deviceId, {bool bypassWhitelist = false}) async {
final result = await _methodChannel.invokeMethod<bool>('connect', {
'deviceId': deviceId,
'bypassWhitelist': bypassWhitelist,
});
return result ?? false;
}