muteTeam method

void muteTeam(
  1. String teamId,
  2. bool mute
)

Implementation

void muteTeam(String teamId, bool mute) {
  TeamRepo.updateTeamNotify(teamId, mute).then((value) {
    if (!value) {
      messageTip = mute;
      notifyListeners();
    }
  });
  messageTip = !mute;
  notifyListeners();
}