Skip to main content

initialise method

Future<void> initialise ()

Implementation

Future\<void\> initialise() async \{
setState(ViewState.busy);
connectivityResult = await connectivity.checkConnectivity();
if (connectivityResult == ConnectivityResult.none) \{
connectivityPresent = false;
Future.delayed(const Duration(seconds: 2))
.then((value) =\> navigationService.pop());
\} else \{
connectivityPresent = true;
\}
setState(ViewState.idle);
\}