getMessage static method
Gets a specific message by index (0-14).
index The index of the message to retrieve (0-14).
Returns the message at the specified index.
Throws RangeError if index is out of bounds.
Implementation
static String getMessage(int index) {
if (index < 0 || index >= _messages.length) {
throw RangeError('Index must be between 0 and ${_messages.length - 1}');
}
return _messages[index];
}