Cases_Case constructor

Cases_Case({
  1. bool? isOtherwise,
  2. Expr? when,
  3. Expr? then,
  4. Expr? otherwise,
})

Implementation

factory Cases_Case({
  $core.bool? isOtherwise,
  Expr? when,
  Expr? then,
  Expr? otherwise,
}) {
  final $result = create();
  if (isOtherwise != null) {
    $result.isOtherwise = isOtherwise;
  }
  if (when != null) {
    $result.when = when;
  }
  if (then != null) {
    $result.then = then;
  }
  if (otherwise != null) {
    $result.otherwise = otherwise;
  }
  return $result;
}