getIdForKey method

String? getIdForKey(
  1. String key
)

Finds an ID in the graph, given a key.

Implementation

String? getIdForKey(String key) {
  final tos = _getEdge(key, metadata: 'id');
  return tos.isEmpty ? null : (tos.first).denamespace().detypify();
}