getCachedContext method

PredictionContext getCachedContext(
  1. PredictionContext context
)

Implementation

PredictionContext getCachedContext(PredictionContext context) {
  if (sharedContextCache == null) return context;

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