fromProcess static method

ProcessInterface fromProcess(
  1. Process process, {
  2. ProcessInterfaceOptions? options,
  3. String? executableFilePath,
})

Wraps an existing Process into a ProcessInterface.

This instance will be marked as isManaged = false.

Implementation

static ProcessInterface fromProcess(final Process process,
        {final ProcessInterfaceOptions? options,
        final String? executableFilePath}) =>
    ProcessInterface._internal(
        process, const Uuid(), options, executableFilePath, false);