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.

Feature: Caregiver & Next-of-Kin

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

Dependencies (1)

Components this component depends on

Dependents (2)

Components that depend on this component

Related Data Entities (1)

Data entities managed by this component