primaryConnection property

NetworkManagerActiveConnection? primaryConnection

The primary connection being used to access the network.

Implementation

NetworkManagerActiveConnection? get primaryConnection {
  var objectPath = _manager?.getObjectPathProperty(
      _managerInterfaceName, 'PrimaryConnection');
  var connection = _objects[objectPath];
  if (connection == null) {
    return null;
  }

  return NetworkManagerActiveConnection(this, connection);
}