ModelAdapterDocumentQuery constructor

const ModelAdapterDocumentQuery({
  1. required DocumentModelQuery query,
  2. void callback(
    1. ModelUpdateNotification update
    )?,
  3. Object? origin,
  4. bool listen = true,
  5. Map<String, String> headers = const {},
  6. String? method,
})

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をご利用ください。

Implementation

const ModelAdapterDocumentQuery({
  required this.query,
  this.callback,
  this.origin,
  this.listen = true,
  this.headers = const {},
  this.method,
});