loadPath method
Loads a single fileName
to the cache.
Returns a decoded String to access that file.
Implementation
Future<String> loadPath(String fileName) async {
final encodedPath = (await load(fileName)).path;
// Web needs an url double-encoded path.
// Darwin needs a decoded path for local files.
return kIsWeb ? encodedPath : Uri.decodeFull(encodedPath);
}