daemonWorkspace function Null safety

String daemonWorkspace(
  1. String workingDirectory
)

Implementation

String daemonWorkspace(String workingDirectory) {
  var segments = [Directory.systemTemp.path];
  if (_username.isNotEmpty) segments.add(_username);
  segments.add(workingDirectory
      .replaceAll('/', '_')
      .replaceAll(':', '_')
      .replaceAll('\\', '_'));
  return p.joinAll(segments);
}