removeVersionFromPublicKey function

String removeVersionFromPublicKey(
  1. String key
)

Implementation

String removeVersionFromPublicKey(String key) {
  List<String> lines = key.split('\n');

  lines.removeWhere((line) => line.trim().startsWith('Version:'));

  return lines.join('\n');
}