isServerSupported function

bool isServerSupported(
  1. List<SignatureMetadata> mySignature,
  2. 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;
}