DigestVerification constructor

DigestVerification({
  1. Digest? digest,
  2. Preimage? preimage,
})

Implementation

factory DigestVerification({
  Digest? digest,
  Preimage? preimage,
}) {
  final _result = create();
  if (digest != null) {
    _result.digest = digest;
  }
  if (preimage != null) {
    _result.preimage = preimage;
  }
  return _result;
}