checkConnectivity method

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

Checks the connection status of the device.

Implementation

@override
Future<List<ConnectivityResult>> checkConnectivity() {
  return methodChannel
      .invokeListMethod<String>('check')
      .then((value) => parseConnectivityResults(value ?? []));
}