ProofListProvider constructor

ProofListProvider(
  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({
  required this.workerId,
  required this.contractId,
  required this.date,
  required this.serviceId,
  this.worker = '',
  this.client = '',
  this.service = '',
}) : super.internal(
        () => ProofList()
          ..workerId = workerId
          ..contractId = contractId
          ..date = date
          ..serviceId = serviceId
          ..worker = worker
          ..client = client
          ..service = service,
        from: proofListProvider,
        name: r'proofListProvider',
        debugGetCreateSourceHash:
            const bool.fromEnvironment('dart.vm.product')
                ? null
                : _$proofListHash,
        dependencies: ProofListFamily._dependencies,
        allTransitiveDependencies: ProofListFamily._allTransitiveDependencies,
      );