initService method
- BuildContext context
Implementation
Future<Map?> initService(
BuildContext context,
) async {
final bool internetStatus = await checkInternetConnection();
if (!internetStatus) {
Transitions(
context: context,
child: const NoInternetPage(),
);
}
Map? result;
try {
result = await platform.invokeMethod(
InvokeMethodsEnvironment.initService,
);
} on PlatformException catch (platformException) {
debugPrint(platformException.stacktrace);
}
return result;
}