checkConnectivity method

  1. @override
Future<ConnectivityResult> checkConnectivity()
override

Checks the connection status of the device.

Implementation

@override
Future<ConnectivityResult> checkConnectivity() {
  return methodChannel
      .invokeMethod<String>('check')
      .then((value) => parseConnectivityResult(value ?? ''));
}