release method Null safety

void release(
  1. String entityId
)

Allows the entity to be garbage collected if it no longer has any references.

Implementation

void release(String entityId) => _retainedEntityIds.remove(entityId);