import 'package:freezed_annotation/freezed_annotation.dart'; import 'package:trainhub_flutter/domain/entities/training_plan.dart'; import 'package:trainhub_flutter/domain/entities/exercise.dart'; part 'plan_editor_state.freezed.dart'; @freezed class PlanEditorState with _$PlanEditorState { const factory PlanEditorState({ required TrainingPlanEntity plan, @Default(false) bool isDirty, @Default([]) List availableExercises, }) = _PlanEditorState; }