app function

Future<Map> app({
  1. required String app_id,
  2. String lang = "en",
  3. String country = "us",
})

Implementation

Future<Map> app(
    {required String app_id, String lang = "en", String country = "us"}) async {
  var url = Formats.Detail.build(app_id: app_id, lang: lang, country: country);
  var dom;
  try {
    dom = await Get(url);
  } catch (e) {
    if (e is NotFoundError) {
      url = Formats.Detail.fallback_build(app_id: app_id, lang: lang);
      dom = await Get(url);
    }
  }
  return parse_dom(dom: dom, app_id: app_id, url: url);
}