currentRelease property
Returns the current storage Release.
Implementation
@override
Release? get currentRelease {
var file = currentReleaseConfigFile;
if (!file.existsSync()) return null;
try {
var data = file.readAsStringSync();
if (data.isEmpty) return null;
var release = Release.parse(data);
var releaseDir = releaseDirectory(release);
return releaseDir.existsSync() ? release : null;
} catch (e, s) {
print(e);
print(s);
return null;
}
}