forked from eatvio/eatvio_app
20 lines
566 B
Dart
20 lines
566 B
Dart
import 'package:eatvio_app/features/calendar/models/calendar_model.dart';
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'calendar_state.freezed.dart';
|
|
|
|
@freezed
|
|
abstract class CalendarState with _$CalendarState {
|
|
const factory CalendarState() = _CalendarState;
|
|
|
|
const factory CalendarState.loading() = CalendarStateLoading;
|
|
|
|
const factory CalendarState.loaded({
|
|
required List<CalendarModel> calendarList,
|
|
}) = CalendarStateLoaded;
|
|
|
|
const factory CalendarState.error({
|
|
required String errorMessage,
|
|
}) = CalendarStateError;
|
|
}
|