getOpenGraphData method

Future<Map> getOpenGraphData (
  1. String url
)

Defines a map with all open-graph tags from a given website

@param url The URL where the OG-data should be extracted from @returns A map containing the OG-data.

Implementation

static Future<Map> getOpenGraphData(String url) async {
  var response = await http.get(url);

  return getOpenGraphDataFromResponse(response);
}