If constructor

If(
  1. Object? condition, {
  2. required Object? then,
  3. Object? orElse,
})

Implementation

If(Object? condition, {required Object? then, Object? orElse})
  : condition = normalizeExpression(condition),
    thenActions = normalizeActionSequence(then, parameterName: 'then'),
    elseActions = normalizeActionSequence(orElse, parameterName: 'orElse');