String textToMorse(String text) { return text.toUpperCase().split('').map((char) => _morseCodeMap[char] ?? '').join(' '); }