menuValidationForPinIcon method

dynamic menuValidationForPinIcon()

Implementation

menuValidationForPinIcon() {
  var checkListForPinIcon = <bool>[];
  var selected = recentChats.where((p0) => selectedChats.contains(p0.jid));
  for (var value in selected) {
    checkListForPinIcon.add(value.isChatPinned!);
  }
  if (checkListForPinIcon.contains(false)) {
    //pin able
    pin(true);
    unpin(false);
  } else {
    pin(false);
    unpin(true);
  }
  //return checkListForPinIcon.contains(false);//pin able
}