disconnect method
Implementation
Future<bool> disconnect() async {
try {
await _client?.close();
return true;
} catch (_) {
return false;
} finally {
_client = null;
// Clear saved params so offline calls do not attempt implicit reconnect
_ip = null;
_port = null;
_database = null;
_username = null;
_password = null;
_encrypt = null;
_trustServerCertificate = false;
_tdsVersion = null;
}
}