Closed jamesderlin closed 3 years ago
This also makes it harder to migrate code that uses dart:io
's Process.run
/Process.start
(which also expect nullable workingDirectory
and environment
) to using ProcessManager
: calling code would need to explicitly pass Platform.environment
and the current working directory to get the same behavior as passing null
directory to dart:io
's Process
functions.
cc @jonahwilliams
ProcessManager
has:LocalProcessManager
has:Is the difference in nullability for the
workingDirectory
andenvironment
arguments intended? While legal, it's confusing, and I don't see any advantage to requiring non-null arguments in the base class.Same for
ProcessManager.start
andLocalProcessManager.start
.