Skip to main content

initialise method

void initialise ()

This function is usedto do initialisation of stuff in the view model.

params: None

returns: None

Implementation

void initialise() {
_currentUser = locator<UserConfig>().currentUser;
_navigationService = locator<NavigationService>();
_selectedOrg = locator<UserConfig>().currentOrg;
_imageFile = null;
_multiMediaPickerService = locator<MultiMediaPickerService>();
_dbFunctions = locator<DataBaseMutationFunctions>();
}