disconnect method
Implementation
Future<void> disconnect() async {
if (connection != null) {
await connection!.close();
connection = null;
}
}
Future<void> disconnect() async {
if (connection != null) {
await connection!.close();
connection = null;
}
}