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) async {
  final data = _cache[digest];
  if (data == null) {
    throw Exception(
      '$_tag: getCachedFilePath: asked path for non existing digest',
    );
  }

  return data;
}