getProjectDir method
void
getProjectDir(
- ResolvedUnitResult resolvedUnitResult
Implementation
void getProjectDir(ResolvedUnitResult resolvedUnitResult) {
print('Looking for project dir 1');
if (!_projectDirCompleter.isCompleted) {
print('Looking for project directory');
final projectDir =
_containsPubspecFile(Uri.parse(resolvedUnitResult.path));
log(
'Project directory is: $projectDir',
name: 'flutter_ditto',
);
assert(!_projectDirCompleter.isCompleted);
_projectDirCompleter.complete(_projectDir = projectDir);
_loadConfigs();
}
}