getIsolateCached method

Future<Isolate?> getIsolateCached(
  1. IsolateRef isolateRef
)

Implementation

Future<Isolate?> getIsolateCached(IsolateRef isolateRef) {
  final isolateState = _isolateStates.putIfAbsent(isolateRef, () => IsolateState(isolateRef));
  return isolateState.isolate;
}