declarationFile static method

File? declarationFile(
  1. Directory workspace
)

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;
}