tryFromWikidata static method

Future<WikiDataEntityNode?> tryFromWikidata(
  1. String entityId, {
  2. Client? client,
})

Implementation

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