getProjectDependencyVersion method

FutureOr<String?> getProjectDependencyVersion(
  1. String package
)

Returns the version string of package at the target project dependencies.

Implementation

FutureOr<String?> getProjectDependencyVersion(String package) {
  return projectPubspecLock.resolveMapped((projectLock) {
    final ver = projectLock['packages'][package]?['version'] as String?;
    return ver;
  });
}