Files
eatvio_app/lib/features/plans/presentation/cubit/about_plan_state.dart
2025-05-21 17:42:43 +03:00

19 lines
567 B
Dart

import 'package:eatvio_app/features/feed/models/plan_pagination_model.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
part 'about_plan_state.freezed.dart';
@freezed
abstract class AboutPlanState with _$AboutPlanState {
const factory AboutPlanState({
required bool isLoading,
required String? error,
required PlanModel? planModel,
required int chosenOptionIndex,
}) = _AboutPlanState;
factory AboutPlanState.initial() => const AboutPlanState(chosenOptionIndex: 0, isLoading: false, error: null, planModel: null);
}