initialise method
[Future<[void>]]
Initializes the state of the component by checking the online status and updating the view accordingly.
This method performs the following actions:
- Sets the view state to busy to indicate that an initialization process is underway.
- Checks the online status of the application.
- If the app is offline, it sets the
connectivityPresent
flag tofalse
. - If the app is online, it sets the
connectivityPresent
flag totrue
.
- If the app is offline, it sets the
- Updates the view state to idle after the online status check is complete.
params: None
returns: None
Implementation
Future<void> async
- talawa
- progress_dialog_view_model
- ProgressDialogViewModel
- initialise method