Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Modify the code in the _handleSubmitted method definition.
- void _handleSubmitted(String text) {
- _textController.clear();
- ChatMessage message = new ChatMessage( //new
- text: text, //new
- ); //new
- setState(() { //new
- _messages.insert(0, message); //new
- }); //new
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement