stubClientService function

  1. @riverpod
ClientService stubClientService(
  1. Ref<Object?> ref
)

Stub provider of service.

Implementation

@riverpod
ClientService stubClientService(Ref ref) => ClientService(
      ref: ref,
      apiKey: ref.read(stubWorkerProvider).apiKey,
      // worker: ref.read(stubWorkerProvider),
      service: const ServiceEntry(id: 0, serv_text: 'Error: Service not found'),
      planned:
          const ClientPlan(contract_id: 0, serv_id: 0, planned: 0, filled: 0),
    );