pathForLookupKey property

String get pathForLookupKey

Path WITHOUT 'assets/' prefix (for native platform lookupKey) Example: 'assets/models/file.task' → 'models/file.task'

Implementation

String get pathForLookupKey {
  String result = normalizedPath;
  if (result.startsWith(_assetsPrefix)) {
    result = result.substring(_assetsPrefix.length);
  }
  return result;
}