favteamselect method
Implementation
Future<void> favteamselect(Team? team) async {
ServiceResult response =
await service.profileServices.selectfavteam(teamID: team?.teamID);
log(response.toString());
if (!response.status) {
log(response.description);
return;
}
if (team != null) {
currentUserAccounts.user.value.favTeam =
Team(teamID: team.teamID, name: team.name, logo: team.logo);
} else {
currentUserAccounts.user.value.favTeam = null;
}
}