fromPEM static method
Create an RSAPrivateKey from the given PEM-String.
Implementation
static RSAPrivateKey fromPEM(String pemString) {
final rows = pemString.trim().split(RegExp(r'\r\n?|\n'));
final privateKeyString = rows
.skipWhile((row) => row.startsWith('-----BEGIN'))
.takeWhile((row) => !row.startsWith('-----END'))
.map((row) => row.trim())
.join('');
return RSAPrivateKey.fromString(privateKeyString);
}