Dependency(this.name, String versionConstraint, this.isDevDependency) : versionConstraint = _parseOrNull(versionConstraint);