feat: home bloc
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
part of 'home_bloc.dart';
|
||||
|
||||
@freezed
|
||||
class HomeState with _$HomeState {
|
||||
const factory HomeState({
|
||||
required DashboardAnalytic dashboard,
|
||||
required Option<AnalyticFailure> failureOptionDashboard,
|
||||
@Default(false) bool isFetching,
|
||||
}) = _HomeState;
|
||||
|
||||
factory HomeState.initial() => HomeState(
|
||||
dashboard: DashboardAnalytic.empty(),
|
||||
failureOptionDashboard: none(),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user