SqlCase constructor
Composes a CASE expression and wraps the result.
- If the
baseSqlargument is notnull, the composedCASEexpression will havebaseSqlas abaseexpression. - If the
elseSqlargument is notnull, the composedCASEexpression will haveelseSqlas anelseexpression. - If the
parenthesizedistrue, which is the default, the expression will be enclosed in parentheses.
Implementation
SqlCase({
Sql? baseSql,
required Map<Sql, Sql> cases,
Sql? elseSql,
bool parenthesized = true,
}) : super._(SqlCase.compose(baseSql, cases, elseSql, parenthesized));