onAnimatedButtonTap method

void onAnimatedButtonTap()

animated button on tap

Implementation

void onAnimatedButtonTap() {
  _formKey.currentState?.save();
  if (isText && textController.text.isNotEmpty) {
    final textMessage =
        ChatMessage(isSender: true, text: textController.text);
    onTextSubmit(textMessage);
  }
  textController.clear();
  isText = false;
  notifyListeners();
}