stubClient function

  1. @riverpod
Client stubClient(
  1. Ref<Object?> ref
)

Stub provider of client.

Implementation

@riverpod
Client stubClient(Ref ref) => ref.watch(
      clientProvider(
        apiKey: ref.read(stubWorkerProvider).apiKey,
        entry: const ClientEntry(
          contract_id: 0,
          dep_id: 0,
          client_id: 0,
          dhw_id: 0,
          comment: 'Error: Client not found',
        ),
      ).notifier,
    );