withE2eeRuntimeContext method

LazyMessagePayload withE2eeRuntimeContext(
  1. WampE2eeRuntimeContext? runtimeContext
)

Returns an equivalent view associated with runtimeContext.

Implementation

LazyMessagePayload withE2eeRuntimeContext(
  WampE2eeRuntimeContext? runtimeContext,
) {
  if (runtimeContext == e2eeRuntimeContext) {
    return this;
  }
  return LazyMessagePayload._(
    transparentBinaryPayload: transparentBinaryPayload,
    encoding: encoding,
    pptDecoded: pptDecoded,
    e2eeProvider: e2eeProvider,
    e2eeRuntimeContext: runtimeContext,
    argumentsBytes: _argumentsBytes,
    argumentsKeywordsBytes: _argumentsKeywordsBytes,
    argumentsDecoder: _argumentsDecoder,
    argumentsKeywordsDecoder: _argumentsKeywordsDecoder,
    packedPayloadBytes: _packedPayloadBytes,
    packedPayloadDecoder: _packedPayloadDecoder,
    arguments: _arguments,
    argumentsKeywords: _argumentsKeywords,
    anchor: anchor,
  );
}