toggleIsUserSelected method
Changes isUserSelected to the opposite value of its current one and calls notifyListeners
Implementation
void toggleIsUserSelected(){
isUserSelected = !isUserSelected;
notifyListeners();
}
Changes isUserSelected to the opposite value of its current one and calls notifyListeners
void toggleIsUserSelected(){
isUserSelected = !isUserSelected;
notifyListeners();
}