getConnectionType method
getConnectionType() returns a String representing the protocol that was used to connect to the printer.
Implementation
@override
Future<String?> getConnectionType() async {
String? connectionType =
await methodChannel.invokeMethod<String>('getConnectionType');
return connectionType;
}