updateProfile method
Receives a profile u and saves it in the index position of profilesList
and calls notifyListeners
Implementation
void updateProfile(int index, Profile u){
profilesList[index] = u;
notifyListeners();
}
Receives a profile u and saves it in the index position of profilesList
and calls notifyListeners
void updateProfile(int index, Profile u){
profilesList[index] = u;
notifyListeners();
}