DashboardBloc constructor
DashboardBloc(
- DashboardState initialState, {
- required Isar isar,
- required DashboardRemoteRepository dashboardRemoteRepo,
- required AttendanceDataRepository attendanceDataRepository,
- required IndividualDataRepository individualDataRepository,
Implementation
DashboardBloc(
super.initialState, {
required this.isar,
required this.dashboardRemoteRepo,
required this.attendanceDataRepository,
required this.individualDataRepository,
}) {
on(_handleSearch); // Register the _handleSearch event handler
on(_handleRefresh); // Register the _handleRefresh event handler
}