retain method Null safety

void retain(
  1. String entityId
)

Prevents the entity from being garbage collected.

Implementation

void retain(String entityId) => _retainedEntityIds.add(entityId);