query<T extends RealmObject> method
Returns all RealmObject
s that match the specified query
.
The Realm Dart and Realm Flutter SDKs supports querying based on a language inspired by NSPredicate and Predicate Programming Guide.
Implementation
RealmResults<T> query<T extends RealmObject>(String query, [List<Object?> args = const []]) {
final metadata = _metadata.getByType(T);
final handle = realmCore.queryClass(this, metadata.classKey, query, args);
return RealmResultsInternal.create<T>(handle, this, metadata);
}