createManifest method

Future<File> createManifest(
  1. Map<String, Uint8List> entries
)

Implementation

Future<File> createManifest(Map<String, Uint8List> entries) async {
  final encodedString = jsonEncode(entries.map(
    (key, value) => MapEntry(key, sha1.convert(value).toString()),
  ));

  return _saveFile('manifest.json', encodedString);
}