ProofList class Inner API Providers

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.

Inheritance
Mixed in types
Annotations

Constructors

ProofList()

Properties

client String
latefinalinherited
contractId int
latefinalinherited
date String
latefinalinherited
hashCode int
The hash code for this object.
read-onlyinherited
loadedFromFS Future<void>?
read / writeinherited
proofs List<Proof>
read-onlyoverride
ref NotifierProviderRef<List<Proof>>
The Ref from the provider associated with this Notifier.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
service String
latefinalinherited
serviceId int?
latefinalinherited
state List<Proof>
The value currently exposed by this Notifier.
read / writeinherited
stateOrNull List<Proof>?
The value currently exposed by this Notifier.
read-onlyinherited
worker String
latefinalinherited
workerId int
latefinalinherited

Methods

addImage(int i, XFile? xFile, String prefix) Future<void>
Move the image into proof Directory and register it as a proof.
inherited
addProof() → void
override
addProofFromFiles(File? beforeImg, File? beforeAudio, File? afterImg, File? afterAudio) → void
override
addProofSilently() → void
Add new proof without notifying anyone.
build({required int workerId, required int contractId, required String date, required int? serviceId, String worker = '', String client = '', String service = ''}) List<Proof>
loadProofsFromFS() Future<void>
Crawl through file system to generate Proofs.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify() → void
override
proofPath(String group) Future<Directory?>
Create directory with proofs.
inherited
toString() String
A string representation of this object.
inherited
updateShouldNotify(List<Proof> previous, List<Proof> next) bool
A method invoked when the state exposed by this Notifier changes. It compares the previous and new value, and return whether listeners should be notified.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited