protectedGet<T> method
T
protectedGet<T>(
- dynamic key
Implementation
T protectedGet<T>(dynamic key) {
final value = _registry[key];
if (value == null) {
throw StateError("Invariant Violation: Fact [$key] is missing.");
}
return value as T;
}