Caregiver BLoC
Component Detail
Service Layer
low complexity
mobile
1
Dependencies
2
Dependents
1
Entities
0
Integrations
Description
Flutter BLoC managing caregiver list state independently from the parent Contact BLoC, enabling targeted refresh of caregiver data without reloading the full contact object. Handles load, add, update, and delete events and emits corresponding loading, loaded, and error states.
caregiver-bloc
Responsibilities
- Manage caregiver list state independently of the parent contact BLoC
- Handle LoadCaregivers, AddCaregiver, UpdateCaregiver, and DeleteCaregiver events
- Emit CaregiverLoading, CaregiverLoaded, and CaregiverError states
- Trigger targeted caregiver list refresh after successful mutations
Interfaces
CaregiverBloc({required CaregiverService caregiverService})
add(CaregiverEvent event): void
stream: Stream<CaregiverState>
state: CaregiverState
Relationships
Dependents (2)
Components that depend on this component