toPem function

Implementation

String toPem(SubjectPublicKeyInfo key) {
  return _getPEMFromBytes(key.toAsn1().encodedBytes, 'PUBLIC KEY');
}