newestVersionCode property
int?
get
newestVersionCode
The highest versionCode any release on this track serves, or null when the track is empty.
Highest rather than first, for the reason above: "the first release listed" is not a fact about which build is on the track.
Implementation
int? get newestVersionCode {
int? newest;
for (final release in releases) {
final code = release.newestVersionCode;
if (code != null && (newest == null || code > newest)) {
newest = code;
}
}
return newest;
}