DefStack constructor

DefStack({
  1. DefStack? parent,
  2. Eval_Definition? def,
})

Implementation

factory DefStack({
  DefStack? parent,
  $3.Eval_Definition? def,
}) {
  final $result = create();
  if (parent != null) {
    $result.parent = parent;
  }
  if (def != null) {
    $result.def = def;
  }
  return $result;
}