detectRunningIDEsCached method

Future<List<IdeType>> detectRunningIDEsCached()

Returns cached IDE detection results, or performs detection if cache is empty.

Implementation

Future<List<IdeType>> detectRunningIDEsCached() async {
  if (!hasCachedResults.value) {
    return detectRunningIDEs();
  }
  return cachedRunningIDEs.toList();
}