generateReply method

void generateReply(
  1. String msg
)

Implementation

void generateReply(String msg){
  Timer(Duration(seconds: 1), () {
    setState(() {
      adapter.insertSingleItem(
          Message.time(adapter.getItemCount(), msg, false, adapter.getItemCount() % 5 == 0,
              Tools.getFormattedTimeEvent(DateTime.now().millisecondsSinceEpoch)
          )
      );
    });
  });
}