setValue method Null safety

void setValue(
  1. Object? value,
  2. {required String name}
)

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

In N1QL 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

void setValue(Object? value, {required String name});