reset method
Reset the entire graph state. Intended for tests only.
Implementation
void reset() {
_write(() {
_entities.clear();
_patches.clear();
_entityStates.clear();
_syncMetadata.clear();
_lists.clear();
_listTypes.clear();
_notifyReset();
});
}