resolvePath static method

String resolvePath(
  1. String fileName,
  2. String? package
)

Resolves fileName to the path it is loaded from, and cached under, when it belongs to package.

Implementation

static String resolvePath(String fileName, String? package) =>
    package == null ? fileName : 'packages/$package/$fileName';