getCachedContext method
Implementation
PredictionContext getCachedContext(PredictionContext context) {
if (sharedContextCache == null) return context;
final visited = <PredictionContext, PredictionContext>{};
return PredictionContext.getCachedContext(
context, sharedContextCache!, visited);
}