Lock constructor

Lock({
  1. Lock_Predicate? predicate,
  2. Lock_Image? image,
  3. Lock_Commitment? commitment,
})

Implementation

factory Lock({
  Lock_Predicate? predicate,
  Lock_Image? image,
  Lock_Commitment? commitment,
}) {
  final _result = create();
  if (predicate != null) {
    _result.predicate = predicate;
  }
  if (image != null) {
    _result.image = image;
  }
  if (commitment != null) {
    _result.commitment = commitment;
  }
  return _result;
}