OpUnary constructor

OpUnary({
  1. OpUnary_Op? op,
  2. Expr? operand,
})

Implementation

factory OpUnary({
  OpUnary_Op? op,
  Expr? operand,
}) {
  final $result = create();
  if (op != null) {
    $result.op = op;
  }
  if (operand != null) {
    $result.operand = operand;
  }
  return $result;
}