notifyBindDevices property

  1. @override
Stream<NotifyDevicesEntity> get notifyBindDevices
override

绑定列表变化

Implementation

@override
Stream<NotifyDevicesEntity> get notifyBindDevices => bs.where((data) {
  // return ((data["dataType"]) as String).contains("BleDevice");
  return data["notifyType"] == "bindDevices";
}).map((map) {
  if (kDebugMode && Yasee.openLog) { print("Yasee-plugin | 绑定设备: $map"); }
  return NotifyDevicesEntity.fromJson(map.cast<String, dynamic>());
});