ModelAdapterDocumentQuery class

Query class to be passed when executing each function of ModelAdapter.

Use this when executing functions for documents. Use ModelAdapterCollectionQuery when performing collection queries.

ModelAdapterの各機能を実行する際に渡すクエリークラス。

ドキュメント用の機能を実行する際に利用します。コレクションのクエリを実行する際はModelAdapterCollectionQueryをご利用ください。

Available Extensions
Annotations

Constructors

ModelAdapterDocumentQuery({required DocumentModelQuery query, void callback(ModelUpdateNotification update)?, Object? origin, bool listen = true, Map<String, String> headers = const {}, String? method})
Query class to be passed when executing each function of ModelAdapter.
const

Properties

callback → (void Function(ModelUpdateNotification update)?)
A callback that is notified when changes are made to the relevant document.
final
hashCode int
The hash code for this object.
no setteroverride
headers Map<String, String>
Headers for sending a request.
final
listen bool
Set to true to monitor query changes.
final
method String?
Method for sending a request.
final
origin Object?
The original document object from which to perform the query.
final
query DocumentModelQuery
Document query.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({Map<String, String>? headers, String? method}) ModelAdapterDocumentQuery
Change headers or method and copy.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override