query method
Filters the list and returns a new RealmResults according to the provided query
(with optional arguments
).
Only works for lists of RealmObject
s or EmbeddedObject
s.
The Realm Dart and Realm Flutter SDKs supports querying based on a language inspired by NSPredicate and Predicate Programming Guide.
Implementation
RealmResults<T> query(String query, [List<Object> arguments = const []]) {
final handle = realmCore.queryList(asManaged(), query, arguments);
return RealmResultsInternal.create<T>(handle, realm, _metadata);
}