conditional function

FunctionExpression conditional(
  1. BooleanExpression condition,
  2. Object? thenValue,
  3. Object? elseValue
)

thenValue if condition holds, elseValue otherwise.

Implementation

FunctionExpression conditional(
  BooleanExpression condition,
  Object? thenValue,
  Object? elseValue,
) => condition.conditional(thenValue, elseValue);