widgetReady method

void widgetReady()

Implementation

void widgetReady() {
  if (!messageStreamController.isClosed) {
    messageStreamController.sink.add(initialMessageList);
  }
  //有消息滚动到底部
  if (initialMessageList.isNotEmpty) {
    scrollToLastMessage();
  }
}