getCurrentVersion method
Reads current version from pubspec.yaml inside projectPath.
Implementation
ProjectVersion getCurrentVersion(String projectPath) {
final pubspecFile = File('$projectPath/pubspec.yaml');
return _pubspecHandler.readVersion(pubspecFile);
}