String removeVersionFromPublicKey(String key) { List<String> lines = key.split('\n'); lines.removeWhere((line) => line.trim().startsWith('Version:')); return lines.join('\n'); }