verifyAsync method Null safety

Future<bool> verifyAsync(
  1. CryptoRSAPublicKey key,
  2. Uint8List message,
  3. Uint8List signature
)

Implementation

static Future<bool> verifyAsync(
    CryptoRSAPublicKey key, Uint8List message, Uint8List signature) {
  Map<String, String> q = {};
  q['message'] = base64.encode(message);
  q['signature'] = base64.encode(signature);
  q['key'] = key.encode();
  return compute(
          (Map<String, String> q) => verify(
              CryptoRSAPublicKey.decode(q['key']!),
              base64.decode(q['message']!),
              base64.decode(q['signature']!)),
          q)
      .then((isVerified) => isVerified);
}