ReceivePort2.fromRawReceivePort constructor

ReceivePort2.fromRawReceivePort(
  1. RawReceivePort2 rawPort
)

Creates a ReceivePort2 from a RawReceivePort2.

The handler of the given rawPort is overwritten during the construction of the result.

Implementation

external factory ReceivePort2.fromRawReceivePort(RawReceivePort2 rawPort);