description static method

String? description(
  1. Document response
)

Return field description from Play Store results.

Implementation

static String? description(Document response) {
  try {
    final sectionElements = response.getElementsByClassName('W4P4ne');
    final descriptionElement = sectionElements[0];
    final description = descriptionElement
        .querySelector('.PHBdkd')
        ?.querySelector('.DWPxHb')
        ?.text;
    return description;
  } catch (e) {
    return redesignedDescription(response);
  }
}