Files
eatvio_app/lib/features/diets/presentation/cubit/about_diet_state.dart
Username1548 4242265830 new test cases
2025-01-29 14:47:27 +07:00

19 lines
657 B
Dart

import 'package:eatvio_app/features/feed/models/diets_pagination_model.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
part 'about_diet_state.freezed.dart';
@freezed
class AboutDietState with _$AboutDietState {
const factory AboutDietState() = _AboutDietState;
const factory AboutDietState.initial() = DietStateInitial;
const factory AboutDietState.loading() = DietStateLoading;
const factory AboutDietState.loaded({
required Diet diet,
@Default(false) bool isStarted,
@Default(false) bool hasStartedDiet,
}) = DietStateLoaded;
const factory AboutDietState.error({required String message}) = DietStateError;
}