isServerSupported function
- List<
SignatureMetadata> mySignature, - List<
SignatureMetadata> serverSignature
Implementation
bool isServerSupported(List<SignatureMetadata> mySignature,
List<SignatureMetadata> serverSignature) {
for (final entry in serverSignature) {
final current = mySignature.firstWhereOrNull((e) => e.id == entry.id);
if (current == null || !current.supports(entry)) {
return false;
}
}
return true;
}