1
0
mirror of https://github.com/Uttkarsh-raj/Plannerly.git synced 2025-11-29 21:57:34 +02:00
Files
Plannerly/Frontend/plannerly/lib/bloc/home/home_state.dart

26 lines
718 B
Dart
Raw Normal View History

2023-10-30 18:51:10 +05:30
part of 'home_bloc.dart';
@immutable
sealed class HomeState {} //build state: used to build/re-build the ui
abstract class HomeActionState
extends HomeState {} //action state:used to take some action in the ui
final class HomeInitial extends HomeState {}
class HomeLoadingState extends HomeState {}
class HomeLoadedSuccessState extends HomeState {
final List<TaskModel> regularTasks;
final List<TaskModel> urgentTasks;
HomeLoadedSuccessState(this.regularTasks, this.urgentTasks);
}
class HomeLoadedErrorState extends HomeState {}
2023-10-30 18:51:10 +05:30
class HomeErrorState extends HomeState {}
class HomeNavigateToUrgentTasksPage extends HomeActionState {}
class HomeNavigateToRegularTasksPage extends HomeActionState {}