mainProject top-level property
DartPackage?
mainProject
The main package which should be executed by default
The mainProjectPath has to be set by the user in initializeSidekick. It's optional, not every project has a mainProject, there are repositories with zero or multiple projects.
Implementation
DartPackage? get mainProject {
if (_activeRunner == null) {
throw OutOfCommandRunnerScopeException('mainProject');
}
return _activeRunner?.mainProject;
}