getMotherStream method

Stream<List<Mother>> getMotherStream(
  1. String query
)

Implementation

Stream<List<Mother>> getMotherStream(String query) {
  final searchQuery = query.isEmpty ? "" : query;
  return Provider.of<CRUDModel>(context, listen: false)
      .fetchMothersAsStreamSearchMothers(widget.doctor!.organizationId!, searchQuery);
}