createPort static method

  1. @internal
RawReceivePort createPort(
  1. Hub hub
)

Implementation

@internal
static RawReceivePort createPort(Hub hub) {
  return RawReceivePort(
    (dynamic error) async {
      await handleIsolateError(hub, error);
    },
  );
}