LeafOp constructor

LeafOp({
  1. HashOp? hash,
  2. HashOp? prehashKey,
  3. HashOp? prehashValue,
  4. LengthOp? length,
  5. List<int>? prefix,
})

Implementation

factory LeafOp({
  HashOp? hash,
  HashOp? prehashKey,
  HashOp? prehashValue,
  LengthOp? length,
  $core.List<$core.int>? prefix,
}) {
  final _result = create();
  if (hash != null) {
    _result.hash = hash;
  }
  if (prehashKey != null) {
    _result.prehashKey = prehashKey;
  }
  if (prehashValue != null) {
    _result.prehashValue = prehashValue;
  }
  if (length != null) {
    _result.length = length;
  }
  if (prefix != null) {
    _result.prefix = prefix;
  }
  return _result;
}