static Stream<List<Device>> get onScanFinished { return _scanFinishedEventChannel.receiveBroadcastStream().map((e) { List<dynamic> devices = jsonDecode(e); return devices.map((e) => Device.fromJson(e)).toList(); }); }