createReceivePort function

ReceivePort createReceivePort(
  1. Completer<Uint8List> c
)

Implementation

ReceivePort createReceivePort(Completer<Uint8List> c) {
  final receivePort = ReceivePort()
    ..listen((data) {
      c.complete(data);
    });
  return receivePort;
}