Refactor _onFlushMountedPresenceSensorFetchBatchStatusEvent to use final for response variable

This commit is contained in:
Faris Armoush
2025-04-23 10:44:44 +03:00
parent 91f93d4395
commit 7adce3b94c

View File

@ -72,7 +72,7 @@ class FlushMountedPresenceSensorBloc
) async {
emit(FlushMountedPresenceSensorLoadingInitialState());
try {
var response = await DevicesManagementApi().getBatchStatus(event.devicesIds);
final response = await DevicesManagementApi().getBatchStatus(event.devicesIds);
deviceStatus = FlushMountedPresenceSensorModel.fromJson(response.status);
emit(FlushMountedPresenceSensorUpdateState(model: deviceStatus));
} catch (e) {