resolveScope method
Returns a stable scope for cache key generation.
Implementation
Future<String> resolveScope() async {
if (_filePath != null) {
return _fileScope(_filePath!, password: password);
}
final documentPath = await _getDocumentPath();
if (documentPath != null && documentPath.isNotEmpty) {
return _documentPathScope(documentPath);
}
return [
'document',
identityHashCode(_document),
cacheVersion ?? 0,
].join('_');
}