Skip to main content

initialize method

void initialize (MainScreenViewModel homeModel, BuildContext context)

Implementation

void initialize(MainScreenViewModel homeModel, BuildContext context) \{
_currentOrganizationStreamSubscription =
userConfig.currentOrgInfoStream.listen(
(updatedOrganization) \{
setSelectedOrganizationName(updatedOrganization);
\},
);
_currentUser = userConfig.currentUser;
_selectedOrg = userConfig.currentOrg;
_switchAbleOrg = _currentUser.joinedOrganizations!;
\}