checkForReleaseNotesSync method
Synchronous variant of checkForReleaseNotes for UI render paths.
Implementation
ReleaseNotesResult checkForReleaseNotesSync({String? lastSeenVersion}) {
final releaseNotes = getRecentReleaseNotes(
currentVersion: appVersion,
previousVersion: lastSeenVersion,
);
return ReleaseNotesResult(
hasReleaseNotes: releaseNotes.isNotEmpty,
releaseNotes: releaseNotes,
);
}