createSignature method

Map<String, SignatureMetadata> createSignature([
  1. Set<String>? packs
])

Implementation

Map<String, SignatureMetadata> createSignature([Set<String>? packs]) {
  final signature = <String, SignatureMetadata>{};
  for (final entry in this.packs) {
    final name =
        entry.key == kCorePackId ? kCorePackId : entry.value.identifier;
    if (!(packs?.contains(name) ?? true)) continue;
    signature[entry.key] = SignatureMetadata(
      metadata: entry.value.getMetadataOrDefault(),
      id: name,
      downloadUrls: getDownloadUrls(entry.key) ?? [],
    );
  }
  return signature;
}