getConnectivityResult method
Returns the method used to connect e.g: Bluetooth, WiFi, Ethernet, Mobile or None
Implementation
Future<ConnectivityResult> getConnectivityResult() async {
return await (_connectivityProvider?.call() ?? Connectivity())
.checkConnectivity();
}