conditional method

Expression conditional(
  1. Expression whenTrue,
  2. Expression whenFalse
)
inherited

Implementation

Expression conditional(Expression whenTrue, Expression whenFalse) =>
    BinaryExpression._(
      expression,
      BinaryExpression._(whenTrue, whenFalse, ':'),
      '?',
    );