redesignedReleaseNotes method

String? redesignedReleaseNotes(
  1. Document response
)

Returns field releaseNotes from Redesigned Play Store results. When there are no release notes, the main app description is used.

Implementation

String? redesignedReleaseNotes(Document response) {
  try {
    final sectionElements =
        response.querySelectorAll('[itemprop="description"]');

    final rawReleaseNotes = sectionElements.last;
    final releaseNotes = multilineReleaseNotes(rawReleaseNotes);
    return releaseNotes;
  } catch (e) {
    if (debugLogging) {
      if (kDebugMode) {
        print(
          'hcUpgrade: PlayStoreResults.redesignedReleaseNotes exception: $e');
      }
    }
  }
  return null;
}