ecPublicKeyFromPem static method
Decode a ECPublicKey from the given pem String.
Throws an ArgumentError if the given string pem is null or empty.
Implementation
static ECPublicKey ecPublicKeyFromPem(String pem) {
if (pem.isEmpty) {
throw ArgumentError('Argument must not be null.');
}
var bytes = RsaUtil.getBytesFromPEMString(pem);
return ecPublicKeyFromDerBytes(bytes);
}