Validates whether the given Morse code sequence is valid.
bool isValidMorse(String morse) { return morse .split(' ') .every((code) => _reverseMorseCodeMap.containsKey(code)); }