sendMessage method
void
sendMessage()
Implementation
void sendMessage(){
String message = inputController.text;
inputController.clear();
showSend = false;
setState(() {
adapter.insertSingleItem(
Message.time(adapter.getItemCount(), message, true,
adapter.getItemCount() % 5 == 0,
Tools.getFormattedTimeEvent(DateTime.now().millisecondsSinceEpoch)
)
);
});
generateReply(message);
}