getHeapId method

String getHeapId(
  1. String typeName,
  2. int offset
)

Gets or creates a unique heap ID for an allocation.

Implementation

String getHeapId(String typeName, int offset) {
  final key = '$typeName@$offset';
  return _heapIds.putIfAbsent(key, () => '$typeName#${_heapCounter++}');
}