unless method

MssqlQuery unless(
  1. bool condition,
  2. MssqlQuery build(
    1. MssqlQuery query
    ), {
  3. MssqlQuery otherwise(
    1. MssqlQuery query
    )?,
})

when, inverted.

Implementation

MssqlQuery unless(
  bool condition,
  MssqlQuery Function(MssqlQuery query) build, {
  MssqlQuery Function(MssqlQuery query)? otherwise,
}) => when(!condition, build, otherwise: otherwise);