Future<bool> isConnected()async{ int result = await _methodChannel.invokeMethod('isConnected'); return result==1?true:false; }