Object? getMessage(int index) { if (index >= msgSize) { return null; } return messageSource.messages.elementAt(index); }