final messageText = message.data['text'] code example Example: final messageText = message.data['text']; final messageText = message.data()['text'];