SocketContribution.wrap constructor

const SocketContribution.wrap(
  1. SocketRef<WrapperSocket> socket,
  2. Fragment fragment, {
  3. Set<Role<Object>> when = const {},
})

Adds the wrapper fragment, created with Fragment.wrap, to a WrapperSocket.

Implementation

const SocketContribution.wrap(
  SocketRef<WrapperSocket> this.socket,
  Fragment this.fragment, {
  super.when,
})  : argName = null,
      entryKey = null,
      entryValue = null,
      origin = null;