libraryUriAvailableNow method

bool libraryUriAvailableNow(
  1. String? uri
)

Implementation

bool libraryUriAvailableNow(String? uri) {
  if (uri == null) return false;
  assert(isServiceAvailable);
  assert(isolateManager.mainIsolate.value != null);
  final isolate = isolateManager.mainIsolateState?.isolateNow;
  return (isolate?.libraries ?? [])
      .map((ref) => ref.uri)
      .toList()
      .any((u) => u?.startsWith(uri) == true);
}