UserAccounts constructor

UserAccounts({
  1. required Rx<User> user,
  2. required Rx<String> sessionTOKEN,
  3. required Rxn<String> language,
  4. List<Post>? widgetPosts,
  5. List<StoryList>? widgetStoriescard,
  6. List<Post>? lastsharingpost,
  7. List<Media>? gallery,
  8. List<APIPlayerPop>? xpcard,
  9. List<APIPlayerPop>? popcard,
  10. List<Chat>? chatList,
  11. List<Chat>? newchatList,
  12. List<News>? newsList,
  13. List<User>? searchList,
  14. List<Notifications>? notificationList,
  15. List<User>? lastviewusersList,
  16. List<Group>? lastviewgroupsList,
  17. List<School>? lastviewschoolsList,
  18. List<Station>? lastviewstationsList,
  19. List<Team>? favoriteteams,
  20. Map<String, dynamic>? favTeam,
  21. bool favteamRequest = false,
  22. Rx<int>? chatNotificationCount,
  23. Rx<int>? friendRequestCount,
  24. Rx<int>? surveyNotificationCount,
  25. Rx<int>? eventsNotificationCount,
  26. Rx<int>? downloadableCount,
  27. Rx<int>? groupInviteCount,
})

Implementation

UserAccounts({
  required this.user,
  required this.sessionTOKEN,
  required this.language,
  this.widgetPosts,
  this.widgetStoriescard,
  this.lastsharingpost,
  this.gallery,
  this.xpcard,
  this.popcard,
  this.chatList,
  this.newchatList,
  this.newsList,
  this.searchList,
  this.notificationList,
  this.lastviewusersList,
  this.lastviewgroupsList,
  this.lastviewschoolsList,
  this.lastviewstationsList,
  this.favoriteteams,
  this.favTeam,
  this.favteamRequest = false,
  Rx<int>? chatNotificationCount,
  Rx<int>? friendRequestCount,
  Rx<int>? surveyNotificationCount,
  Rx<int>? eventsNotificationCount,
  Rx<int>? downloadableCount,
  Rx<int>? groupInviteCount,
})  : chatNotificationCount = chatNotificationCount ?? Rx<int>(0),
      surveyNotificationCount = surveyNotificationCount ?? Rx<int>(0),
      eventsNotificationCount = eventsNotificationCount ?? Rx<int>(0),
      downloadableCount = downloadableCount ?? Rx<int>(0),
      friendRequestCount = friendRequestCount ?? Rx<int>(0),
      groupInviteCount = groupInviteCount ?? Rx<int>(0);