ready property
Ready (pubspec.yaml loaded)
Implementation
late final ready = () async {
pubspecYaml = await pathGetPubspecYamlMap(path);
stdout.writeln('${normalize(absolute(path))}:');
isFlutter = pubspecYamlSupportsFlutter(pubspecYaml);
_useFlutterPub = isFlutter;
if (!isFlutter && (isWorkspace || hasWorkspaceResolution)) {
try {
// Find all projects
var workspace = await getWorkspaceRootPath();
var pubspecYaml = await pathGetPubspecYamlMap(workspace);
var projects = pubspecYaml['workspace'];
if (projects is List) {
for (var project in projects) {
var projectPath = join(workspace, project.toString());
var projectPubspecYaml = await pathGetPubspecYamlMap(projectPath);
if (pubspecYamlSupportsFlutter(projectPubspecYaml)) {
_useFlutterPub = true;
break;
}
}
}
} catch (e) {
stderr.writeln('Error: $e trying to find workspace info');
}
}
}();