Open kimjong69 opened 2 years ago
final messageText = message.data['text']; it says the operator [] isnt defined for the object pls help
You should use message.get('text') instead of message.data['text'].
final messageText = (message.data() as Map<String, dynamic>)['text']; try this
final messageText = message.data['text']; it says the operator [] isnt defined for the object pls help