query method

RealmResults<T> query(
  1. String query, [
  2. List<Object> args = const []
])

Returns a new RealmResults filtered according to the provided query.

The Realm Dart and Realm Flutter SDKs supports querying based on a language inspired by NSPredicate

Implementation

RealmResults<T> query(String query, [List<Object> args = const []]) {
  final handle = realmCore.queryResults(this, query, args);
  return RealmResultsInternal.create<T>(handle, realm, _metadata);
}