checkConnectivity method
Checks the connection status of the device.
Implementation
@override
Future<List<ConnectivityResult>> checkConnectivity() {
return methodChannel
.invokeListMethod<String>('check')
.then((value) => parseConnectivityResults(value ?? []));
}