Google is committed to advancing racial equity for Black communities. See how.

IncomingMessage.fromOutgoingMessage constructor

IncomingMessage.fromOutgoingMessage(OutgoingMessage outgoingMessage)

Implementation

@visibleForTesting
IncomingMessage.fromOutgoingMessage(OutgoingMessage outgoingMessage)
    : handleInfos = outgoingMessage.handleDispositions
          .map((handleDisposition) => HandleInfo(handleDisposition.handle,
              handleDisposition.type, handleDisposition.rights))
          .toList(),
      super(outgoingMessage.data);