getConnectionState method

Future<ConnectionStateType> getConnectionState ()

获取当前网络连接状态。

Implementation

@override
Future<ConnectionStateType> getConnectionState() {
  return _invokeMethod('getConnectionState').then((value) {
    return ConnectionStateTypeConverter.fromValue(value).e;
  });
}