dispose method
Implementation
Future<void> dispose() async {
await stopScan();
await disconnect();
if (!_devicesController.isClosed) {
await _devicesController.close();
}
if (!_connectionStateController.isClosed) {
await _connectionStateController.close();
}
_isInitialized = false;
}