CaseWhenExpression<R extends Object> constructor

CaseWhenExpression<R extends Object>(
  1. {required List<CaseWhen<bool, R>> cases,
  2. Expression<R>? orElse}

Creates a CASE WHEN expression from the independent components.

This expression evaluates to the first value in cases for which CaseWhen.when evaluates to true.

If cases is empty - throws ArgumentError


  required List<CaseWhen<bool, R>> cases,
  Expression<R>? orElse,
}) : super._(null, cases, orElse);