getConnectionState method

最近更新时间:2022-09-20 05:17:40

@override
Future<ConnectionStateType> getConnectionState ()

获取网络连接状态。

Implementation


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