reachableIdsFromDataId function

Set<String> reachableIdsFromDataId(
  1. String dataId,
  2. Map<String, dynamic>? read(
    1. String dataId
    ), [
  3. String referenceKey = kDefaultReferenceKey
])

Returns a set of all IDs reachable from the given data ID.

Includes the given dataId itself.

Implementation

Set<String> reachableIdsFromDataId(
  String dataId,
  Map<String, dynamic>? Function(String dataId) read, [
  String referenceKey = kDefaultReferenceKey,
]) =>
    _idsInObject(read(dataId), read, referenceKey, {})..add(dataId);