protectedSet method
void
protectedSet(
- dynamic key,
- dynamic value
Implementation
void protectedSet(dynamic key, dynamic value) {
if (_registry.containsKey(key)) {
throw StateError(
"Immutable Violation: Fact [$key] is already set in this context history.",
);
}
_registry[key] = value;
}