query method

QueryBuilder<T> query([
  1. Condition<T>? qc
])

Starts building a query which returns objects matching the supplied conditions.

For example:

final query = userBox
    .query(User_.firstName.equals('Joe')
        .and(User_.lastName.startsWith("O")))
    .build();
final joes = query.find();
query.close();

For more examples and options see https://docs.objectbox.io/queries.

Implementation

@pragma('vm:prefer-inline')
QueryBuilder<T> query([Condition<T>? qc]) =>
    QueryBuilder<T>(_store, _entity, qc);