lookupLocationFor method

String? lookupLocationFor(
  1. String extensionIdentifier
)

Returns the absolute path of the assets for the extension with identifier extensionIdentifier.

This caches values upon first request for faster lookup.

Implementation

String? lookupLocationFor(String extensionIdentifier) {
  return _extensionLocationsByIdentifier.putIfAbsent(
    extensionIdentifier,
    () => devtoolsExtensions
        .firstWhereOrNull((e) => e.identifier == extensionIdentifier)
        ?.extensionAssetsPath,
  );
}