connectionStreamOf static method
to get connection update
for a specific device
Implementation
static Stream<bool> connectionStreamOf(String address) =>
_connectionStreamController.stream
.where((event) => event["device"] == address)
.map((event) => event["connected"]);