effective static method
Applies requested on top of the pubspec version. A requested version
without a build number keeps the pubspec's, so 1.4.0 on 1.3.9+41
becomes 1.4.0+41.
Implementation
static BuildVersion effective(String? requested, String pubspecVersion) {
final base = parse(pubspecVersion);
if (requested == null) return base;
final wanted = parse(requested);
return BuildVersion(wanted.name, wanted.number ?? base.number);
}