MpscSender<T>.fromTransferable constructor

MpscSender<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 MpscSender.fromTransferable(Map<String, Object?> data) =>
    MpscSender._(-1, unpackPort(data['port']!),
        metricsId: data['metricsId'] as String?);