setBoolean abstract method

void setBoolean(
  1. bool? value, {
  2. required String name,
})

Set a bool to the query parameter referenced by the given name.

In SQL++ queries, a parameter is referenced by prefixing an identifier with $. For example, this query defines a parameter with the name TYPE:

SELECT * FROM _ WHERE type = $TYPE;

When building a query through the QueryBuilder, you can create a parameter expression with Expression.parameter.

Implementation

// ignore: avoid_positional_boolean_parameters
void setBoolean(bool? value, {required String name});