morse_code_generator library

Functions

isValidMorse(String morse) bool
Validates whether the given Morse code sequence is valid.
isValidText(String text) bool
Validates whether the given text contains only valid English characters for Morse conversion.
morseToText(String morse) String
Converts Morse code back to English text. Throws an ArgumentError if an invalid Morse sequence is found.
textToMorse(String text) String
Converts English text to Morse code. Throws an ArgumentError if any unsupported character is detected.