getCachedFilePath method

  1. @override
FutureOr<String> getCachedFilePath(
  1. String digest
)
override

Gets the cached file path for the given digest.

Implementation

@override
FutureOr<String> getCachedFilePath(String digest) {
  final filePath = _box.get(digest);
  if (filePath == null) {
    throw Exception(
      '$_tag: getCachedFilePath: asked path for non existing digest',
    );
  }

  return filePath;
}