resolve static method

String? resolve()

First existing library path among the registered resolvers.

Implementation

static String? resolve() {
  for (final resolver in List.of(_resolvers)) {
    try {
      final path = resolver();
      if (path != null && File(path).existsSync()) return path;
    } on StateError {
      // ignore: avoid_catches_without_on_clauses
      // A resolver probing an unavailable platform must not break the chain.
    }
  }
  return null;
}