toggleSelecting method

void toggleSelecting()

Toggles the Chats selection.

Implementation

void toggleSelecting() {
  selecting.toggle();
  router.navigation.value = !selecting.value;

  if (selecting.value) {
    router.navigator.value = (context) =>
        ChatsTabView.selectingBuilder(context, this);
  } else {
    router.navigator.value = null;
  }

  selectedChats.clear();
}