ChatUIKitKeyboardPanelController constructor

ChatUIKitKeyboardPanelController({
  1. TextEditingController? inputTextEditingController,
})

Implementation

ChatUIKitKeyboardPanelController(
    {TextEditingController? inputTextEditingController}) {
  _inputPanelController =
      inputTextEditingController ?? TextEditingController();
  _inputPanelFocusNode = FocusNode();
  _inputPanelFocusNode.addListener(() {
    if (ignoreFocus) return;
    if (_inputPanelFocusNode.hasFocus) {
      switchPanel(ChatUIKitKeyboardPanelType.keyboard);
    }
  });
}