declarationFile static method
The declaration file of workspace, when the project has one.
Implementation
static File? declarationFile(Directory workspace) {
final file = File('${workspace.path}/$declarationPath');
return file.existsSync() ? file : null;
}