protectedGet<T> method

T protectedGet<T>(
  1. 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;
}