readSidecar method

Map<String, Object?> readSidecar(
  1. String providerId,
  2. String cacheKey
)

Reads and decodes the sidecar for cacheKey.

Implementation

Map<String, Object?> readSidecar(String providerId, String cacheKey) =>
    jsonDecode(sidecarFile(providerId, cacheKey).readAsStringSync()) as Map<String, Object?>;