Service Layer medium complexity mobile
1
Dependencies
0
Dependents
1
Entities
0
Integrations

Description

BLoC state manager for the contact list screen. Handles events for search input changes, filter selection, pagination, and pull-to-refresh. Exposes stream of ContactListState to the UI layer. Integrates with Riverpod providers for dependency injection.

Feature: Contact List & Search

contact-list-bloc

Responsibilities

  • Process ContactListEvent stream (search, filter, paginate, refresh)
  • Emit ContactListState (loading, loaded, error, empty)
  • Coordinate with ContactSearchService for data fetching
  • Maintain search query and active filter state across rebuilds

Interfaces

ContactListBloc(contactSearchService)
add(ContactListEvent)
Stream<ContactListState> state

Relationships

Dependencies (1)

Components this component depends on

Related Data Entities (1)

Data entities managed by this component