protectedSet method

void protectedSet(
  1. dynamic key,
  2. 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;
}