setProof method

void setProof(
  1. Proof proof, {
  2. bool init = false,
})

Implementation

void setProof(Proof proof, {bool init = false}) {
  if (!init) {
    _hasChanged = true;
  }
  _proof = proof;
  _cropParameters = null;
  _proofType = proof.type!;
  _date = proof.date!;
  _currency = proof.currency!;
  if (!init) {
    notifyListeners();
  }
}