addNewProfile method
- Profile newUser
Adds the argument newUser to profilesList, increments by 1 the profileCounter
and calls notifyListeners
Implementation
void addNewProfile(Profile newUser){
profilesList.add(newUser);
profileCounter++;
notifyListeners();
}