fix:增加事件监听对应变量,用于后续取消监听

This commit is contained in:
liyi 2025-04-16 14:15:11 +08:00
parent 084f887e89
commit 4234464533
2 changed files with 4 additions and 2 deletions

View File

@ -814,7 +814,7 @@ class LockDetailLogic extends BaseGetXController {
}
});
eventBus
state.DetailLockInfo = eventBus
.on<PassCurrentLockInformationEvent>()
.listen((PassCurrentLockInformationEvent event) {
if (event.lockSetInfoData.lockSettingInfo != null &&
@ -839,7 +839,7 @@ class LockDetailLogic extends BaseGetXController {
}
});
eventBus
state.SuccessfulDistributionNetworkEvent = eventBus
.on<SuccessfulDistributionNetwork>()
.listen((SuccessfulDistributionNetwork event) {
//

View File

@ -14,6 +14,8 @@ class LockDetailState {
late StreamSubscription<Reply> replySubscription;
StreamSubscription? lockSetOpenOrCloseCheckInRefreshLockDetailWithAttendanceEvent;
StreamSubscription? LockSetChangeSetRefreshLockDetailWithTypeSubscription;
StreamSubscription? DetailLockInfo;
StreamSubscription? SuccessfulDistributionNetworkEvent;
String lockNetToken = '0';
int differentialTime = 0;//