Future<bool> checkConnection() async { final bool isConnected = await _channel.invokeMethod('checkConnection'); return isConnected; }