SpscSender<T>.fromTransferable constructor

SpscSender<T>.fromTransferable(
  1. Map<String, Object?> data
)

Reconstructs a remote-only sender from a transferable representation.

Use with toTransferable to transfer a sender across Web Workers or Isolates. The reconstructed sender always uses the remote path.

Implementation

factory SpscSender.fromTransferable(Map<String, Object?> data) =>
    SpscSender._(-1, unpackPort(data['port']!),
        metricsId: data['metricsId'] as String?);