tryFromWikidata static method

Future<WikiDataLinksRelation?> tryFromWikidata(
  1. WikiDataEntityNode from,
  2. WikiDataEntityNode to,
  3. String wikiRelationId, {
  4. Client? client,
})

Implementation

static Future<WikiDataLinksRelation?> tryFromWikidata(
  WikiDataEntityNode from,
  WikiDataEntityNode to,
  String wikiRelationId, {
  http.Client? client,
}) {
  try {
    return _fromWikidata(
      from,
      to,
      wikiRelationId,
      client: client,
    );
  } catch (e) {
    return Future(() => null);
  }
}