closeReplyMessageView static method

void closeReplyMessageView(
  1. BuildContext context
)

Implementation

static void closeReplyMessageView(BuildContext context) {
  final state = context.findAncestorStateOfType<_ChatViewState>();

  assert(
    state != null,
    'ChatViewState not found. Make sure to use correct context that contains the ChatViewState',
  );

  state?.replyMessageViewClose();
}