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