From 7e37aed0263791fc117a62dc0f258d1e9ba55147 Mon Sep 17 00:00:00 2001 From: Faris Armoush Date: Tue, 6 May 2025 09:09:27 +0300 Subject: [PATCH] formatted `PowerClampInfoBloc`. --- .../power_clamp_info/power_clamp_info_bloc.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/pages/analytics/modules/energy_management/blocs/power_clamp_info/power_clamp_info_bloc.dart b/lib/pages/analytics/modules/energy_management/blocs/power_clamp_info/power_clamp_info_bloc.dart index c6a1ec28..4febe1b4 100644 --- a/lib/pages/analytics/modules/energy_management/blocs/power_clamp_info/power_clamp_info_bloc.dart +++ b/lib/pages/analytics/modules/energy_management/blocs/power_clamp_info/power_clamp_info_bloc.dart @@ -44,12 +44,12 @@ class PowerClampInfoBloc extends Bloc UpdatePowerClampStatusEvent event, Emitter emit, ) async { - final currentModel = state.powerClampModel; - if (currentModel == null) return; + final currentModel = state.powerClampModel; + if (currentModel == null) return; - final updatedStatus = PowerStatus.fromStatusList(event.statusList); - final updatedModel = currentModel.copyWith(statusPower: updatedStatus); + final updatedStatus = PowerStatus.fromStatusList(event.statusList); + final updatedModel = currentModel.copyWith(statusPower: updatedStatus); - emit(state.copyWith(powerClampModel: updatedModel)); -} + emit(state.copyWith(powerClampModel: updatedModel)); + } }