mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-14 09:17:37 +00:00
Refactor _onFlushMountedPresenceSensorFetchBatchStatusEvent to use final for response variable
This commit is contained in:
@ -72,7 +72,7 @@ class FlushMountedPresenceSensorBloc
|
|||||||
) async {
|
) async {
|
||||||
emit(FlushMountedPresenceSensorLoadingInitialState());
|
emit(FlushMountedPresenceSensorLoadingInitialState());
|
||||||
try {
|
try {
|
||||||
var response = await DevicesManagementApi().getBatchStatus(event.devicesIds);
|
final response = await DevicesManagementApi().getBatchStatus(event.devicesIds);
|
||||||
deviceStatus = FlushMountedPresenceSensorModel.fromJson(response.status);
|
deviceStatus = FlushMountedPresenceSensorModel.fromJson(response.status);
|
||||||
emit(FlushMountedPresenceSensorUpdateState(model: deviceStatus));
|
emit(FlushMountedPresenceSensorUpdateState(model: deviceStatus));
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Reference in New Issue
Block a user