opcodeMapToString function
Learn more about the SFZ format here: sfzformat.com/headers/
Implementation
String opcodeMapToString(Map<String, String>? opcodeMap) {
if (opcodeMap == null) {
return '';
} else {
return opcodeMap.entries
.map((entry) => '${entry.key}=${entry.value}\n')
.join('');
}
}