DashboardBloc constructor

DashboardBloc(
  1. DashboardState initialState, {
  2. required Isar isar,
  3. required DashboardRemoteRepository dashboardRemoteRepo,
  4. required AttendanceDataRepository attendanceDataRepository,
  5. 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
}