finlizing

This commit is contained in:
ashraf_personal
2024-11-27 01:11:23 +03:00
parent 644e56aa7a
commit fbec2fbeae
6 changed files with 127 additions and 36 deletions

View File

@ -29,6 +29,7 @@ class RoutineBloc extends Bloc<RoutineEvent, RoutineState> {
on<EffectiveTimePeriodEvent>(_onEffectiveTimeEvent);
on<CreateAutomationEvent>(_onCreateAutomation);
on<SetRoutineName>(_onSetRoutineName);
on<ResetRoutineState>(_onResetRoutineState);
// on<RemoveFunction>(_onRemoveFunction);
// on<ClearFunctions>(_onClearFunctions);
}
@ -370,4 +371,9 @@ class RoutineBloc extends Bloc<RoutineEvent, RoutineState> {
routineName: null,
);
}
FutureOr<void> _onResetRoutineState(
ResetRoutineState event, Emitter<RoutineState> emit) {
emit(_resetState());
}
}