call method

ProofListProvider call(
  1. {required int workerId,
  2. required int contractId,
  3. required String date,
  4. required int? serviceId,
  5. String worker = '',
  6. String client = '',
  7. String service = ''}
)

Notifier that store and manage list of ProofEntry.

It does:

  • load proofs from filesystem with loadProofsFromFS function,
  • it is a Notifier,
  • add new proofs,
  • ...

If serviceId == null, it create/collect proof for whole day.

{@category Inner API} {@category Providers}

Copied from ProofList.

Implementation

ProofListProvider call({
  required int workerId,
  required int contractId,
  required String date,
  required int? serviceId,
  String worker = '',
  String client = '',
  String service = '',
}) {
  return ProofListProvider(
    workerId: workerId,
    contractId: contractId,
    date: date,
    serviceId: serviceId,
    worker: worker,
    client: client,
    service: service,
  );
}